summaryrefslogtreecommitdiff
path: root/decode_randr.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_randr.c
parent6dde56a016d502cf422b5c54247e225bb13e26d0 (diff)
downloadxscope-02906bf1766ad1769e03f9372611087389ee23b0.tar.gz
Constify many char pointers
Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com>
Diffstat (limited to 'decode_randr.c')
-rw-r--r--decode_randr.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/decode_randr.c b/decode_randr.c
index aa86de5..bb54d6a 100644
--- a/decode_randr.c
+++ b/decode_randr.c
@@ -38,7 +38,7 @@ unsigned char RANDRRequest, RANDRError, RANDREvent;
void
randr_decode_req (
FD fd,
- unsigned char *buf)
+ const unsigned char *buf)
{
short Major = IByte (&buf[0]);
short Minor = IByte (&buf[1]);
@@ -56,7 +56,7 @@ randr_decode_req (
void
randr_decode_reply (
FD fd,
- unsigned char *buf,
+ const unsigned char *buf,
short RequestMinor)
{
switch (RequestMinor) {
@@ -69,14 +69,14 @@ randr_decode_reply (
void
randr_decode_event (
FD fd,
- unsigned char *buf)
+ const unsigned char *buf)
{
RandrScreenChangeNotifyEvent (buf);
}
void
InitializeRANDR (
- unsigned char *buf)
+ const unsigned char *buf)
{
TYPE p;
@@ -89,13 +89,13 @@ InitializeRANDR (
DefineEValue (&TD[REPLY], (unsigned long) RANDRRequest, "RandrReply");
DefineEValue (&TD[EVENT], (unsigned long) RANDREvent, "RRScreenChangeNotify");
- p = DefineType(RANDRREQUEST, ENUMERATED, "RANDRREQUEST", PrintENUMERATED);
+ p = DefineType(RANDRREQUEST, ENUMERATED, "RANDRREQUEST", (PrintProcType) PrintENUMERATED);
DefineEValue(p, 0L, "RandrQueryVersion");
DefineEValue(p, 1L, "RandrGetScreenInfo");
DefineEValue(p, 2L, "RandrSetScreenConfig");
DefineEValue(p, 3L, "RandrScreenChangeSelectInput");
- p = DefineType(RANDRREPLY, ENUMERATED, "RANDRREPLY", PrintENUMERATED);
+ p = DefineType(RANDRREPLY, ENUMERATED, "RANDRREPLY", (PrintProcType) PrintENUMERATED);
DefineEValue (p, 0L, "QueryVersion");
DefineEValue (p, 1L, "GetScreenInfo");
DefineEValue (p, 2L, "SetScreenConfig");