summaryrefslogtreecommitdiff
path: root/src/XrrMode.c
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/XrrMode.c
parent39976a7d1cc9e737e662695ae5326af805c50a27 (diff)
downloadxorg-lib-libXrandr-6dfe7d4fa04a5054ee3daeb654ac5a763f37fed1.tar.gz
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/XrrMode.c')
-rw-r--r--src/XrrMode.c2
1 files changed, 1 insertions, 1 deletions
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;