xserver/xkb
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Alan Coopersmith 232f1ddf3d Fix gcc -Wwrite-strings warnings in XkbGetRulesDflts
Stop temporarily storing a pointer to a constant literal string
in a char *, just to strdup it a few lines later.

Fixes gcc -Wwrite-strings warnings:

xkbInit.c: In function 'XkbGetRulesDflts':
xkbInit.c:121:38: warning: assignment discards qualifiers from pointer target type
xkbInit.c:123:23: warning: assignment discards qualifiers from pointer target type
xkbInit.c:125:24: warning: assignment discards qualifiers from pointer target type
xkbInit.c:127:25: warning: assignment discards qualifiers from pointer target type
xkbInit.c:129:25: warning: assignment discards qualifiers from pointer target type

Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Reviewed-by: Jeremy Huddleston <jeremyhu@apple.com>
2011-11-23 12:15:07 -08:00
..
ddxBeep.c
ddxCtrls.c
ddxKillSrv.c
ddxLEDs.c
ddxList.c Mark XKB char * as const to clean up gcc -Wwrite-strings warnings 2011-11-23 12:15:06 -08:00
ddxLoad.c Convert strncpy/strncat to strlcpy/strlcat 2011-11-23 12:15:05 -08:00
ddxPrivate.c
ddxVT.c
Makefile.am
maprules.c Mark XKB char * as const to clean up gcc -Wwrite-strings warnings 2011-11-23 12:15:06 -08:00
README.compiled
xkb.c
xkb.h
xkbAccessX.c
xkbActions.c input: replace remaining GetPairedDevice() with GetMaster() 2011-11-09 13:26:47 +10:00
XKBAlloc.c
xkbDflts.h
xkbEvents.c
xkbfmisc.c Mark XKB char * as const to clean up gcc -Wwrite-strings warnings 2011-11-23 12:15:06 -08:00
XKBGAlloc.c
xkbgeom.h
xkbInit.c Fix gcc -Wwrite-strings warnings in XkbGetRulesDflts 2011-11-23 12:15:07 -08:00
xkbLEDs.c
XKBMAlloc.c
XKBMisc.c
xkbout.c Mark XKB char * as const to clean up gcc -Wwrite-strings warnings 2011-11-23 12:15:06 -08:00
xkbPrKeyEv.c
xkbSwap.c
xkbtext.c Mark XKB char * as const to clean up gcc -Wwrite-strings warnings 2011-11-23 12:15:06 -08:00
xkbUtils.c
XKM_file_format.txt
xkmread.c

The X server uses this directory to store the compiled version of the
current keymap and/or any scratch keymaps used by clients.  The X server
or some other tool might destroy or replace the files in this directory,
so it is not a safe place to store compiled keymaps for long periods of
time.  The default keymap for any server is usually stored in:
     X<num>-default.xkm
where <num> is the display number of the server in question, which makes
it possible for several servers *on the same host* to share the same 
directory.

Unless the X server is modified, sharing this directory between servers on
different hosts could cause problems.