summaryrefslogtreecommitdiff
path: root/decode_shm.c
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@sun.com>2009-05-06 17:00:09 -0700
committerAlan Coopersmith <alan.coopersmith@sun.com>2009-05-06 21:44:36 -0700
commit02906bf1766ad1769e03f9372611087389ee23b0 (patch)
tree461fca85f78e124bdc68ace534401d4e6af6b03e /decode_shm.c
parent6dde56a016d502cf422b5c54247e225bb13e26d0 (diff)
Constify many char pointers
Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com>
Diffstat (limited to 'decode_shm.c')
-rw-r--r--decode_shm.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/decode_shm.c b/decode_shm.c
index f47712c..4c2876e 100644
--- a/decode_shm.c
+++ b/decode_shm.c
@@ -37,7 +37,7 @@ unsigned char MITSHMRequest, MITSHMError, MITSHMEvent;
void
mitshm_decode_req (
FD fd,
- unsigned char *buf)
+ const unsigned char *buf)
{
short Major = IByte (&buf[0]);
short Minor = IByte (&buf[1]);
@@ -57,7 +57,7 @@ mitshm_decode_req (
void
mitshm_decode_reply (
FD fd,
- unsigned char *buf,
+ const unsigned char *buf,
short RequestMinor)
{
switch (RequestMinor) {
@@ -69,14 +69,14 @@ mitshm_decode_reply (
void
mitshm_decode_event (
FD fd,
- unsigned char *buf)
+ const unsigned char *buf)
{
}
void
mitshm_decode_error (
FD fd,
- unsigned char *buf)
+ const unsigned char *buf)
{
short error = IByte(&buf[0]) - MITSHMError;
@@ -90,7 +90,7 @@ mitshm_decode_error (
void
InitializeMITSHM (
- unsigned char *buf)
+ const unsigned char *buf)
{
TYPE p;
@@ -104,7 +104,7 @@ InitializeMITSHM (
DefineEValue (&TD[EVENT], (unsigned long) MITSHMEvent, "MitshmEvent");
DefineEValue (&TD[ERROR], (unsigned long) MITSHMError, "MitshmError");
- p = DefineType(MITSHMREQUEST, ENUMERATED, "MITSHMREQUEST", PrintENUMERATED);
+ p = DefineType(MITSHMREQUEST, ENUMERATED, "MITSHMREQUEST", (PrintProcType) PrintENUMERATED);
DefineEValue(p, 0L, "MitshmQueryVersion");
DefineEValue(p, 1L, "MitshmAttach");
DefineEValue(p, 2L, "MitshmDetach");
@@ -112,10 +112,10 @@ InitializeMITSHM (
DefineEValue(p, 4L, "MitshmGetImage");
DefineEValue(p, 5L, "MitshmCreatePixmap");
- p = DefineType(MITSHMREPLY, ENUMERATED, "MITSHMREPLY", PrintENUMERATED);
+ p = DefineType(MITSHMREPLY, ENUMERATED, "MITSHMREPLY", (PrintProcType) PrintENUMERATED);
DefineEValue (p, 0L, "QueryVersion");
DefineEValue (p, 4L, "GetImage");
- p = DefineType(MITSHMEVENT, ENUMERATED, "MITSHMEVENT", PrintENUMERATED);
+ p = DefineType(MITSHMEVENT, ENUMERATED, "MITSHMEVENT", (PrintProcType) PrintENUMERATED);
DefineEValue (p, 0L, "CompletionEvent");
}