summaryrefslogtreecommitdiff
path: root/decode_bigreq.c
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@sun.com>2009-05-06 09:42:48 -0700
committerAlan Coopersmith <alan.coopersmith@sun.com>2009-05-06 21:44:35 -0700
commit80ac8c6d04c04ec1f892883397507f32292ae590 (patch)
tree4133191d4c63cd27315491b6f82028cf3efca134 /decode_bigreq.c
parent245871145e6a12739ed8d4512b5e2cb6b1a1721c (diff)
downloadxscope-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_bigreq.c')
-rw-r--r--decode_bigreq.c23
1 files changed, 13 insertions, 10 deletions
diff --git a/decode_bigreq.c b/decode_bigreq.c
index 1a75265..d359a5a 100644
--- a/decode_bigreq.c
+++ b/decode_bigreq.c
@@ -34,9 +34,10 @@ unsigned char LookForBIGREQFlag;
unsigned char BIGREQRequest;
-bigreq_decode_req(fd, buf)
-FD fd;
-unsigned char *buf;
+void
+bigreq_decode_req (
+ FD fd,
+ unsigned char *buf)
{
short Major = IByte (&buf[0]);
short Minor = IByte (&buf[1]);
@@ -51,20 +52,22 @@ unsigned char *buf;
}
}
-bigreq_decode_reply(fd, buf, RequestMinor)
- FD fd;
- unsigned char *buf;
- short RequestMinor;
+void
+bigreq_decode_reply (
+ FD fd,
+ unsigned char *buf,
+ short RequestMinor)
{
switch (RequestMinor) {
case 0: BigreqEnableReply (fd, buf); break;
}
}
-InitializeBIGREQ(buf)
- unsigned char *buf;
+void
+InitializeBIGREQ(
+ unsigned char *buf)
{
- TYPE p, DefineType ();
+ TYPE p;
BIGREQRequest = (unsigned char)(buf[9]);
LookForBIGREQFlag = 0;