[PATCH:xscope 03/24] Define *HEADER constants as string pointers, not arrays
Alan Coopersmith
alan.coopersmith at oracle.com
Fri Aug 31 22:17:45 PDT 2012
Signed-off-by: Alan Coopersmith <alan.coopersmith at oracle.com>
---
print11.c | 8 ++++----
x11.h | 2 +-
2 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/print11.c b/print11.c
index e7da143..36b335f 100644
--- a/print11.c
+++ b/print11.c
@@ -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";
/* ************************************************************ */
diff --git a/x11.h b/x11.h
index ec4760b..4fba039 100644
--- a/x11.h
+++ b/x11.h
@@ -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
--
1.7.9.2
More information about the xorg-devel
mailing list