summaryrefslogtreecommitdiff
path: root/print_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 /print_shm.c
parent6dde56a016d502cf422b5c54247e225bb13e26d0 (diff)
downloadxscope-02906bf1766ad1769e03f9372611087389ee23b0.tar.gz
Constify many char pointers
Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com>
Diffstat (limited to 'print_shm.c')
-rw-r--r--print_shm.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/print_shm.c b/print_shm.c
index f100477..667d556 100644
--- a/print_shm.c
+++ b/print_shm.c
@@ -27,7 +27,7 @@
#include "shmscope.h"
void
-MitshmQueryVersion (FD fd, unsigned char *buf)
+MitshmQueryVersion (FD fd, const unsigned char *buf)
{
PrintField (buf, 0, 1, REQUEST, REQUESTHEADER) /* MitshmRequest */ ;
PrintField (buf, 1, 1, MITSHMREQUEST, MITSHMREQUESTHEADER) /* MitshmSwitch */ ;
@@ -40,7 +40,7 @@ MitshmQueryVersion (FD fd, unsigned char *buf)
}
void
-MitshmQueryVersionReply (FD fd, unsigned char *buf)
+MitshmQueryVersionReply (FD fd, const unsigned char *buf)
{
short n;
long m;
@@ -60,7 +60,7 @@ MitshmQueryVersionReply (FD fd, unsigned char *buf)
}
void
-MitshmAttach (FD fd, unsigned char *buf)
+MitshmAttach (FD fd, const unsigned char *buf)
{
PrintField (buf, 0, 1, REQUEST, REQUESTHEADER) /* MitshmRequest */ ;
PrintField (buf, 1, 1, MITSHMREQUEST, MITSHMREQUESTHEADER) /* MitshmSwitch */ ;
@@ -76,7 +76,7 @@ MitshmAttach (FD fd, unsigned char *buf)
}
void
-MitshmDetach (FD fd, unsigned char *buf)
+MitshmDetach (FD fd, const unsigned char *buf)
{
PrintField (buf, 0, 1, REQUEST, REQUESTHEADER) /* MitshmRequest */ ;
PrintField (buf, 1, 1, MITSHMREQUEST, MITSHMREQUESTHEADER) /* MitshmSwitch */ ;
@@ -90,7 +90,7 @@ MitshmDetach (FD fd, unsigned char *buf)
}
void
-MitshmPutImage (FD fd, unsigned char *buf)
+MitshmPutImage (FD fd, const unsigned char *buf)
{
PrintField (buf, 0, 1, REQUEST, REQUESTHEADER) /* MitshmRequest */ ;
PrintField (buf, 1, 1, MITSHMREQUEST, MITSHMREQUESTHEADER) /* MitshmSwitch */ ;
@@ -119,7 +119,7 @@ MitshmPutImage (FD fd, unsigned char *buf)
}
void
-MitshmGetImage (FD fd, unsigned char *buf)
+MitshmGetImage (FD fd, const unsigned char *buf)
{
PrintField (buf, 0, 1, REQUEST, REQUESTHEADER) /* MitshmRequest */ ;
PrintField (buf, 1, 1, MITSHMREQUEST, MITSHMREQUESTHEADER) /* MitshmSwitch */ ;
@@ -141,7 +141,7 @@ MitshmGetImage (FD fd, unsigned char *buf)
}
void
-MitshmGetImageReply (FD fd, unsigned char *buf)
+MitshmGetImageReply (FD fd, const unsigned char *buf)
{
short n;
long m;
@@ -157,7 +157,7 @@ MitshmGetImageReply (FD fd, unsigned char *buf)
}
void
-MitshmCreatePixmap (FD fd, unsigned char *buf)
+MitshmCreatePixmap (FD fd, const unsigned char *buf)
{
PrintField (buf, 0, 1, REQUEST, REQUESTHEADER) /* MitshmRequest */ ;
PrintField (buf, 1, 1, MITSHMREQUEST, MITSHMREQUESTHEADER) /* MitshmSwitch */ ;
@@ -177,6 +177,6 @@ MitshmCreatePixmap (FD fd, unsigned char *buf)
}
void
-MitshmShmSegError (FD fd, unsigned char *buf)
+MitshmShmSegError (FD fd, const unsigned char *buf)
{
}