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_wcp.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_wcp.c')
-rw-r--r-- | decode_wcp.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/decode_wcp.c b/decode_wcp.c index ba93efb..bcf0653 100644 --- a/decode_wcp.c +++ b/decode_wcp.c @@ -38,7 +38,7 @@ unsigned char WCPRequest, WCPError; void wcp_decode_req ( FD fd, - unsigned char *buf) + const unsigned char *buf) { short Major = IByte (&buf[0]); short Minor = IByte (&buf[1]); @@ -75,7 +75,7 @@ wcp_decode_req ( void wcp_decode_reply ( FD fd, - unsigned char *buf, + const unsigned char *buf, short RequestMinor) { switch (RequestMinor) { @@ -93,7 +93,7 @@ wcp_decode_reply ( void wcp_decode_error ( FD fd, - unsigned char *buf) + const unsigned char *buf) { short error = IByte(&buf[1]) - WCPError; @@ -107,7 +107,7 @@ wcp_decode_error ( void InitializeWCP ( - unsigned char *buf) + const unsigned char *buf) { TYPE p; @@ -119,7 +119,7 @@ InitializeWCP ( DefineEValue (&TD[REPLY], (unsigned long) WCPRequest, "WcpReply"); DefineEValue (&TD[ERROR], (unsigned long) WCPError, "WcpError"); - p = DefineType(WCPREQUEST, ENUMERATED, "WCPREQUEST", PrintENUMERATED); + p = DefineType(WCPREQUEST, ENUMERATED, "WCPREQUEST", (PrintProcType) PrintENUMERATED); DefineEValue(p, 0L, "WcpQueryVersion"); DefineEValue(p, 1L, "WcpPutImage"); DefineEValue(p, 2L, "WcpGetImage"); @@ -128,7 +128,7 @@ InitializeWCP ( DefineEValue(p, 5L, "WcpFreeLut"); DefineEValue(p, 6L, "WcpCopyArea"); - p = DefineType(WCPREPLY, ENUMERATED, "WCPREPLY", PrintENUMERATED); + p = DefineType(WCPREPLY, ENUMERATED, "WCPREPLY", (PrintProcType) PrintENUMERATED); DefineEValue (p, 0L, "QueryVersion"); } |