summaryrefslogtreecommitdiff
path: root/src
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 /src
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 'src')
-rw-r--r--src/XrrCrtc.c2
-rw-r--r--src/XrrMode.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/XrrCrtc.c b/src/XrrCrtc.c
index 0762373..04087c5 100644
--- a/src/XrrCrtc.c
+++ b/src/XrrCrtc.c
@@ -306,7 +306,7 @@ void
XRRSetCrtcTransform (Display *dpy,
RRCrtc crtc,
XTransform *transform,
- char *filter,
+ _Xconst char *filter,
XFixed *params,
int nparams)
{
diff --git a/src/XrrMode.c b/src/XrrMode.c
index 0b74a73..e605e8a 100644
--- a/src/XrrMode.c
+++ b/src/XrrMode.c
@@ -33,7 +33,7 @@
#include "Xrandrint.h"
XRRModeInfo *
-XRRAllocModeInfo (char *name, int nameLength)
+XRRAllocModeInfo (_Xconst char *name, int nameLength)
{
XRRModeInfo *mode_info;