diff options
author | Alan Coopersmith <alan.coopersmith@sun.com> | 2009-05-06 09:42:48 -0700 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@sun.com> | 2009-05-06 21:44:35 -0700 |
commit | 80ac8c6d04c04ec1f892883397507f32292ae590 (patch) | |
tree | 4133191d4c63cd27315491b6f82028cf3efca134 /decode_shm.c | |
parent | 245871145e6a12739ed8d4512b5e2cb6b1a1721c (diff) | |
download | xscope-80ac8c6d04c04ec1f892883397507f32292ae590.tar.gz |
Ansify prototypes and move extern declarations to header files
Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com>
Diffstat (limited to 'decode_shm.c')
-rw-r--r-- | decode_shm.c | 37 |
1 files changed, 21 insertions, 16 deletions
diff --git a/decode_shm.c b/decode_shm.c index da2b74c..f47712c 100644 --- a/decode_shm.c +++ b/decode_shm.c @@ -34,9 +34,10 @@ unsigned char LookForMITSHMFlag; unsigned char MITSHMRequest, MITSHMError, MITSHMEvent; -mitshm_decode_req(fd, buf) -FD fd; -unsigned char *buf; +void +mitshm_decode_req ( + FD fd, + unsigned char *buf) { short Major = IByte (&buf[0]); short Minor = IByte (&buf[1]); @@ -53,10 +54,11 @@ unsigned char *buf; } } -mitshm_decode_reply(fd, buf, RequestMinor) - FD fd; - unsigned char *buf; - short RequestMinor; +void +mitshm_decode_reply ( + FD fd, + unsigned char *buf, + short RequestMinor) { switch (RequestMinor) { case 0: MitshmQueryVersionReply (fd, buf); break; @@ -64,15 +66,17 @@ mitshm_decode_reply(fd, buf, RequestMinor) } } -mitshm_decode_event(fd, buf) - FD fd; - unsigned char *buf; +void +mitshm_decode_event ( + FD fd, + unsigned char *buf) { } -mitshm_decode_error(fd, buf) - FD fd; - unsigned char *buf; +void +mitshm_decode_error ( + FD fd, + unsigned char *buf) { short error = IByte(&buf[0]) - MITSHMError; @@ -84,10 +88,11 @@ mitshm_decode_error(fd, buf) } -InitializeMITSHM(buf) - unsigned char *buf; +void +InitializeMITSHM ( + unsigned char *buf) { - TYPE p, DefineType (); + TYPE p; MITSHMRequest = (unsigned char)(buf[9]); MITSHMEvent = (unsigned char)(buf[10]); |