summaryrefslogtreecommitdiff
path: root/decode_lbx.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_lbx.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_lbx.c')
-rw-r--r--decode_lbx.c37
1 files changed, 21 insertions, 16 deletions
diff --git a/decode_lbx.c b/decode_lbx.c
index 5aced31..46ea90a 100644
--- a/decode_lbx.c
+++ b/decode_lbx.c
@@ -35,9 +35,10 @@ unsigned char LookForLBXFlag;
unsigned char LBXRequest, LBXEvent, LBXError;
-lbx_decode_req(fd, buf)
-FD fd;
-unsigned char *buf;
+void
+lbx_decode_req (
+ FD fd,
+ unsigned char *buf)
{
short Major = IByte (&buf[0]);
short Minor = IByte (&buf[1]);
@@ -70,10 +71,11 @@ unsigned char *buf;
}
}
-lbx_decode_reply(fd, buf, RequestMinor)
- FD fd;
- unsigned char *buf;
- short RequestMinor;
+void
+lbx_decode_reply (
+ FD fd,
+ unsigned char *buf,
+ short RequestMinor)
{
switch (RequestMinor) {
case 0:
@@ -84,9 +86,10 @@ lbx_decode_reply(fd, buf, RequestMinor)
}
}
-lbx_decode_error(fd, buf)
- FD fd;
- unsigned char *buf;
+void
+lbx_decode_error (
+ FD fd,
+ unsigned char *buf)
{
short error = IByte(&buf[1]) - LBXError;
@@ -98,9 +101,10 @@ lbx_decode_error(fd, buf)
}
}
-lbx_decode_event (fd, buf)
- FD fd;
- unsigned char *buf;
+void
+lbx_decode_event (
+ FD fd,
+ unsigned char *buf)
{
short event = IByte(&buf[0]) - LBXEvent;
@@ -116,10 +120,11 @@ lbx_decode_event (fd, buf)
}
}
-InitializeLBX(buf)
- unsigned char *buf;
+void
+InitializeLBX (
+ unsigned char *buf)
{
- TYPE p, DefineType ();
+ TYPE p;
LBXRequest = (unsigned char)(buf[9]);
LBXEvent = (unsigned char)(buf[10]);