summaryrefslogtreecommitdiff
path: root/include/X11/extensions
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2012-08-31 21:39:10 -0700
committerAlan Coopersmith <alan.coopersmith@oracle.com>2012-09-06 23:13:51 -0700
commit6dfe7d4fa04a5054ee3daeb654ac5a763f37fed1 (patch)
tree6b962b88119d37f414dd54c16b75561b8b35b264 /include/X11/extensions
parent39976a7d1cc9e737e662695ae5326af805c50a27 (diff)
Constify a couple string arguments that are just copied, not modified
Fixes compiler warnings when building app/xrandr: xrandr.c: In function ‘crtc_set_transform’: xrandr.c:1459:9: warning: passing argument 4 of ‘XRRSetCrtcTransform’ discards qualifiers from pointer target type X11/extensions/Xrandr.h:419:1: note: expected ‘char *’ but argument is of type ‘const char *’ Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com> Reviewed-by: Aaron Plattner <aplattner@nvidia.com>
Diffstat (limited to 'include/X11/extensions')
-rw-r--r--include/X11/extensions/Xrandr.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/X11/extensions/Xrandr.h b/include/X11/extensions/Xrandr.h
index b1baf8a..f394864 100644
--- a/include/X11/extensions/Xrandr.h
+++ b/include/X11/extensions/Xrandr.h
@@ -341,7 +341,7 @@ XRRGetOutputProperty (Display *dpy, RROutput output,
unsigned char **prop);
XRRModeInfo *
-XRRAllocModeInfo (char *name, int nameLength);
+XRRAllocModeInfo (_Xconst char *name, int nameLength);
RRMode
XRRCreateMode (Display *dpy, Window window, XRRModeInfo *modeInfo);
@@ -419,7 +419,7 @@ void
XRRSetCrtcTransform (Display *dpy,
RRCrtc crtc,
XTransform *transform,
- char *filter,
+ _Xconst char *filter,
XFixed *params,
int nparams);