From 02906bf1766ad1769e03f9372611087389ee23b0 Mon Sep 17 00:00:00 2001 From: Alan Coopersmith Date: Wed, 6 May 2009 17:00:09 -0700 Subject: Constify many char pointers Signed-off-by: Alan Coopersmith --- decode_wcp.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'decode_wcp.c') 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"); } -- cgit v1.2.1