This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
[patch] Zap some PTR (make some static) in remote.c
- From: Andrew Cagney <ac131313 at cygnus dot com>
- To: gdb-patches at sources dot redhat dot com
- Date: Sun, 19 May 2002 12:55:07 -0400
- Subject: [patch] Zap some PTR (make some static) in remote.c
Just FYI,
Some minor cleanups.
committed,
Andrew
2002-05-19 Andrew Cagney <ac131313@redhat.com>
* remote.c (remote_start_remote): Replace PTR with void pointer.
(sigint_remote_twice_token, sigint_remote_token): Ditto. Make
static.
Index: remote.c
===================================================================
RCS file: /cvs/src/src/gdb/remote.c,v
retrieving revision 1.81
diff -u -r1.81 remote.c
--- remote.c 14 May 2002 04:26:24 -0000 1.81
+++ remote.c 19 May 2002 16:52:37 -0000
@@ -86,7 +86,7 @@
enum target_signal siggnal);
static void remote_async_resume (ptid_t ptid, int step,
enum target_signal siggnal);
-static int remote_start_remote (PTR);
+static int remote_start_remote (void *);
static void remote_open (char *name, int from_tty);
static void remote_async_open (char *name, int from_tty);
@@ -970,8 +970,8 @@
/* Tokens for use by the asynchronous signal handlers for SIGINT */
-PTR sigint_remote_twice_token;
-PTR sigint_remote_token;
+static void *sigint_remote_twice_token;
+static void *sigint_remote_token;
/* These are pointers to hook functions that may be set in order to
modify resume/wait behavior for a particular architecture. */
@@ -2114,7 +2114,7 @@
}
static int
-remote_start_remote (PTR dummy)
+remote_start_remote (void *dummy)
{
immediate_quit++; /* Allow user to interrupt it */