diff options
author | Andrew Cagney <cagney@redhat.com> | 2000-05-22 09:02:23 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@redhat.com> | 2000-05-22 09:02:23 +0000 |
commit | 74b7792f0fcae41f7c7da524527b7261a3fd68c4 (patch) | |
tree | b88a9a20c59780f3b51c4819b6dea5acce3ec446 /gdb/sparcl-tdep.c | |
parent | 32c092c3fab0ca778242005a793cc4641c3e1b4b (diff) | |
download | ppe42-binutils-74b7792f0fcae41f7c7da524527b7261a3fd68c4.tar.gz ppe42-binutils-74b7792f0fcae41f7c7da524527b7261a3fd68c4.zip |
Purge (almost) make_cleanup_func.
Diffstat (limited to 'gdb/sparcl-tdep.c')
-rw-r--r-- | gdb/sparcl-tdep.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/gdb/sparcl-tdep.c b/gdb/sparcl-tdep.c index 91499af03f..aaf6e30dae 100644 --- a/gdb/sparcl-tdep.c +++ b/gdb/sparcl-tdep.c @@ -44,7 +44,7 @@ static int udp_fd = -1; static serial_t open_tty PARAMS ((char *name)); static int send_resp PARAMS ((serial_t desc, char c)); -static void close_tty PARAMS ((int ignore)); +static void close_tty (void * ignore); #ifdef HAVE_SOCKETS static int recv_udp_buf PARAMS ((int fd, unsigned char *buf, int len, int timeout)); static int send_udp_buf PARAMS ((int fd, unsigned char *buf, int len)); @@ -358,8 +358,7 @@ send_resp (desc, c) } static void -close_tty (ignore) - int ignore; +close_tty (void *ignore) { if (!remote_desc) return; @@ -480,7 +479,7 @@ or: target sparclite udp host"); { remote_desc = open_tty (p); - old_chain = make_cleanup ((make_cleanup_func) close_tty, 0); + old_chain = make_cleanup (close_tty, 0 /*ignore*/); c = send_resp (remote_desc, 0x00); |