diff options
author | Alan Coopersmith <alan.coopersmith@sun.com> | 2009-05-06 17:00:09 -0700 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@sun.com> | 2009-05-06 21:44:36 -0700 |
commit | 02906bf1766ad1769e03f9372611087389ee23b0 (patch) | |
tree | 461fca85f78e124bdc68ace534401d4e6af6b03e /decode_lbx.c | |
parent | 6dde56a016d502cf422b5c54247e225bb13e26d0 (diff) | |
download | xscope-02906bf1766ad1769e03f9372611087389ee23b0.tar.gz |
Constify many char pointers
Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com>
Diffstat (limited to 'decode_lbx.c')
-rw-r--r-- | decode_lbx.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/decode_lbx.c b/decode_lbx.c index 46ea90a..fc7e7f2 100644 --- a/decode_lbx.c +++ b/decode_lbx.c @@ -38,7 +38,7 @@ unsigned char LBXRequest, LBXEvent, LBXError; void lbx_decode_req ( FD fd, - unsigned char *buf) + const unsigned char *buf) { short Major = IByte (&buf[0]); short Minor = IByte (&buf[1]); @@ -74,7 +74,7 @@ lbx_decode_req ( void lbx_decode_reply ( FD fd, - unsigned char *buf, + const unsigned char *buf, short RequestMinor) { switch (RequestMinor) { @@ -89,7 +89,7 @@ lbx_decode_reply ( void lbx_decode_error ( FD fd, - unsigned char *buf) + const unsigned char *buf) { short error = IByte(&buf[1]) - LBXError; @@ -104,7 +104,7 @@ lbx_decode_error ( void lbx_decode_event ( FD fd, - unsigned char *buf) + const unsigned char *buf) { short event = IByte(&buf[0]) - LBXEvent; @@ -122,7 +122,7 @@ lbx_decode_event ( void InitializeLBX ( - unsigned char *buf) + const unsigned char *buf) { TYPE p; @@ -136,7 +136,7 @@ InitializeLBX ( DefineEValue (&TD[EVENT], (unsigned long) LBXEvent, "LbxEvent"); DefineEValue (&TD[ERROR], (unsigned long) LBXError, "LbxError"); - p = DefineType(LBXREQUEST, ENUMERATED, "LBXREQUEST", PrintENUMERATED); + p = DefineType(LBXREQUEST, ENUMERATED, "LBXREQUEST", (PrintProcType) PrintENUMERATED); DefineEValue(p, 0L, "QueryVersion"); DefineEValue(p, 1L, "StartProxy"); DefineEValue(p, 2L, "StopProxy"); @@ -145,10 +145,10 @@ InitializeLBX ( DefineEValue(p, 5L, "CloseClient"); DefineEValue(p, 6L, "ModifySequence"); - p = DefineType(LBXREPLY, ENUMERATED, "LBXREPLY", PrintENUMERATED); + p = DefineType(LBXREPLY, ENUMERATED, "LBXREPLY", (PrintProcType) PrintENUMERATED); DefineEValue (p, 0L, "QueryVersion"); - p = DefineType(LBXEVENT, ENUMERATED, "LBXEVENT", PrintENUMERATED); + p = DefineType(LBXEVENT, ENUMERATED, "LBXEVENT", (PrintProcType) PrintENUMERATED); DefineEValue (p, 0L, "SwitchEvent"); DefineEValue (p, 1L, "CloseEvent"); } |