diff options
author | Alan Coopersmith <alan.coopersmith@oracle.com> | 2012-07-08 13:27:37 -0700 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2012-07-21 23:47:00 -0700 |
commit | 36ddba4f6f916eabfc94a22cf7845221f1d4a3cb (patch) | |
tree | aa1cf5e7659820c87ea56a91ec5b46f36d65f940 | |
parent | c7e1d62267ad0296fbe29c00cd6b54a1ee1f93e0 (diff) |
Define *HEADER constants as string pointers, not arrays
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
-rw-r--r-- | print11.c | 8 | ||||
-rw-r--r-- | x11.h | 2 |
2 files changed, 5 insertions, 5 deletions
@@ -179,10 +179,10 @@ PrintSuccessfulSetUpReply(const unsigned char *buf) /* */ /* ************************************************************ */ -const char REQUESTHEADER[] = "............REQUEST"; -const char EVENTHEADER[] = "..............EVENT"; -const char ERRORHEADER[] = "..............ERROR"; -const char REPLYHEADER[] = "..............REPLY"; +const char *REQUESTHEADER = "............REQUEST"; +const char *EVENTHEADER = "..............EVENT"; +const char *ERRORHEADER = "..............ERROR"; +const char *REPLYHEADER = "..............REPLY"; /* ************************************************************ */ @@ -552,7 +552,7 @@ extern long PrintListSTR(const unsigned char *buf, long number, extern long pad(long n); -extern const char REQUESTHEADER[], EVENTHEADER[], ERRORHEADER[], REPLYHEADER[]; +extern const char *REQUESTHEADER, *EVENTHEADER, *ERRORHEADER, *REPLYHEADER; #define GC_function 0x00000001L #define GC_plane_mask 0x00000002L |