summaryrefslogtreecommitdiff
path: root/decode11.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 /decode11.c
parent6dde56a016d502cf422b5c54247e225bb13e26d0 (diff)
downloadxscope-02906bf1766ad1769e03f9372611087389ee23b0.tar.gz
Constify many char pointers
Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com>
Diffstat (limited to 'decode11.c')
-rw-r--r--decode11.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/decode11.c b/decode11.c
index f5ca040..f30d34a 100644
--- a/decode11.c
+++ b/decode11.c
@@ -329,7 +329,7 @@ KeepLastReplyExpected (void)
#define DUMP_EVENT 2
#define DUMP_ERROR 3
-static char *simple_names[] = {
+static const char * const simple_names[] = {
"REQUEST",
"REPLY ",
"EVENT ",
@@ -354,7 +354,7 @@ SimpleDump (int type, FD fd, short Major, short Minor, long bytes)
void
DecodeRequest (
FD fd,
- unsigned char *buf,
+ const unsigned char *buf,
long n)
{
short Request = IByte (&buf[0]);
@@ -844,7 +844,7 @@ DecodeRequest (
void
DecodeReply (
FD fd,
- unsigned char *buf,
+ const unsigned char *buf,
long n)
{
short SequenceNumber = IShort (&buf[2]);
@@ -1016,7 +1016,7 @@ DecodeReply (
void
DecodeError (
FD fd,
- unsigned char *buf,
+ const unsigned char *buf,
long n)
{
short Error = IByte (&buf[1]);
@@ -1112,7 +1112,7 @@ DecodeError (
void
DecodeEvent (
FD fd,
- unsigned char *buf,
+ const unsigned char *buf,
long n)
{
short Event = IByte (&buf[0]);