diff options
author | Keith Packard <keithp@keithp.com> | 2013-11-15 21:57:05 +0900 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2014-01-12 10:14:49 -0800 |
commit | d89b42bda46d36fc0879611cc3b3566957ce36d0 (patch) | |
tree | fdbf1dc37a86b98e63ca5235506e5ff1f90e6b28 /include/gcstruct.h | |
parent | d6da9f23cca562fc0c6ae398665ab7fa770a4fa8 (diff) |
Clean up warnings in DIX
As usual, mostly const char changes. However, filter_device_events had
a potentially uninitialized value, 'raw', which I added a bunch of
checks for. I suspect most of those are 'can't happen', but it's hard
to see that inside the function.
Signed-off-by: Keith Packard <keithp@keithp.com>
Reviewed-by: Adam Jackson <ajax@redhat.com>
Diffstat (limited to 'include/gcstruct.h')
-rw-r--r-- | include/gcstruct.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/gcstruct.h b/include/gcstruct.h index 7621ceb11..253593f11 100644 --- a/include/gcstruct.h +++ b/include/gcstruct.h @@ -276,8 +276,8 @@ typedef struct _GC { pointer clientClip; unsigned long stateChanges; /* masked with GC_<kind> */ unsigned long serialNumber; - GCFuncs *funcs; - GCOps *ops; + const GCFuncs *funcs; + const GCOps *ops; PrivateRec *devPrivates; /* * The following were moved here from private storage to allow device- |