Commit 0e0efb8b authored by Alan Coopersmith's avatar Alan Coopersmith

Add const attributes to fix gcc -Wwrite-strings warnings

Signed-off-by: Alan Coopersmith's avatarAlan Coopersmith <alan.coopersmith@oracle.com>
Reviewed-by: Aaron Plattner's avatarAaron Plattner <aplattner@nvidia.com>
parent df353cc7
......@@ -282,7 +282,7 @@ XftDefaultSet (Display *dpy, FcPattern *defaults)
}
_X_HIDDEN int
XftDefaultParseBool (char *v)
XftDefaultParseBool (const char *v)
{
char c0, c1;
......@@ -307,7 +307,7 @@ XftDefaultParseBool (char *v)
}
static Bool
_XftDefaultInitBool (Display *dpy, FcPattern *pat, char *option)
_XftDefaultInitBool (Display *dpy, FcPattern *pat, const char *option)
{
char *v;
int i;
......@@ -319,7 +319,7 @@ _XftDefaultInitBool (Display *dpy, FcPattern *pat, char *option)
}
static Bool
_XftDefaultInitDouble (Display *dpy, FcPattern *pat, char *option)
_XftDefaultInitDouble (Display *dpy, FcPattern *pat, const char *option)
{
char *v, *e;
double d;
......@@ -335,7 +335,7 @@ _XftDefaultInitDouble (Display *dpy, FcPattern *pat, char *option)
}
static Bool
_XftDefaultInitInteger (Display *dpy, FcPattern *pat, char *option)
_XftDefaultInitInteger (Display *dpy, FcPattern *pat, const char *option)
{
char *v, *e;
int i;
......
......@@ -164,7 +164,7 @@ _XftLockFile (XftFtFile *f)
}
static void
_XftLockError (char *reason)
_XftLockError (const char *reason)
{
fprintf (stderr, "Xft: locking error %s\n", reason);
}
......
......@@ -43,7 +43,7 @@ XftGetVersion (void)
}
static struct {
char *name;
const char *name;
int alloc_count;
int alloc_mem;
int free_count;
......
......@@ -376,7 +376,7 @@ void
_XftDisplayManageMemory (Display *dpy);
int
XftDefaultParseBool (char *v);
XftDefaultParseBool (const char *v);
FcBool
XftDefaultGetBool (Display *dpy, const char *object, int screen, FcBool def);
......
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