Commit 6dfe7d4f authored by Alan Coopersmith's avatar Alan Coopersmith

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's avatarAlan Coopersmith <alan.coopersmith@oracle.com>
Reviewed-by: Aaron Plattner's avatarAaron Plattner <aplattner@nvidia.com>
parent 39976a7d
......@@ -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);
......
......@@ -306,7 +306,7 @@ void
XRRSetCrtcTransform (Display *dpy,
RRCrtc crtc,
XTransform *transform,
char *filter,
_Xconst char *filter,
XFixed *params,
int nparams)
{
......
......@@ -33,7 +33,7 @@
#include "Xrandrint.h"
XRRModeInfo *
XRRAllocModeInfo (char *name, int nameLength)
XRRAllocModeInfo (_Xconst char *name, int nameLength)
{
XRRModeInfo *mode_info;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment