xserver-multidpi/Xext
Alan Coopersmith 9999819601 Constify string for authorization protocol names
gcc was warning from storing string constants in a char *name field:
auth.c:64:1: warning: initialization discards qualifiers from pointer target type
auth.c:72:1: warning: initialization discards qualifiers from pointer target type
auth.c:81:1: warning: initialization discards qualifiers from pointer target type

Making the field const requires changing AuthorizationFromID to take
a const char ** pointer for the name argument which it sets to point
to the matching name entry.

Changing that argument requires changing its sole caller in the security
extension to pass the address of a const char * variable to it, which it
can do, since the only thing it does with the returned name is to pass
it back to the RemoveAuthorization function that already expects a const
char *name.

Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Reviewed-by: Jamey Sharp <jamey@minilop.net>
Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
2011-12-12 17:03:10 -08:00
..
bigreq.c Use internal temp variable for swap macros 2011-09-21 17:12:04 -04:00
dpms.c Use internal temp variable for swap macros 2011-09-21 17:12:04 -04:00
dpmsproc.h DPMS: Remove unused DPMSGet() 2009-04-03 18:22:20 -04:00
dpmsstubs.c DPMS: Remove unused DPMSGet() 2009-04-03 18:22:20 -04:00
geext.c Use internal temp variable for swap macros 2011-09-21 17:12:04 -04:00
geext.h Xext: remove ev_fill from GEExtensions. 2009-03-20 15:17:54 +10:00
geint.h Change the devPrivates API to require dixRegisterPrivateKey 2010-06-05 19:23:03 -07:00
Makefile.am xext: Remove XCALIBRATE extension 2011-03-01 10:56:17 +10:00
panoramiX.c Merge remote-tracking branch 'mattst88/for-keith' 2011-09-21 14:34:27 -07:00
panoramiX.h panoramiX: consolidate common id assignment code. 2011-03-10 11:00:48 +10:00
panoramiXh.h Centralize declaration of ConnectionInfo. 2008-08-20 13:14:34 -04:00
panoramiXprocs.c panoramiX: convert 1->panoramiXNumScreens loops to use macro (v2) 2011-03-10 11:01:51 +10:00
panoramiXsrv.h XineramaInitData ignores its argument. Quit passing one. 2011-09-18 20:11:43 -05:00
panoramiXSwap.c Use internal temp variable for swap macros 2011-09-21 17:12:04 -04:00
saver.c xext: don't free uninitialised pointer when malloc fails. (v2) 2011-12-06 16:00:35 +00:00
security.c Constify string for authorization protocol names 2011-12-12 17:03:10 -08:00
securitysrv.h Xext: include security protocol header instead of client header 2009-09-20 19:57:01 +10:00
shape.c Use internal temp variable for swap macros 2011-09-21 17:12:04 -04:00
shm.c Fix ShmPutImage for XYBitmap 2011-11-19 14:25:53 +01:00
shmint.h Update to xextproto 7.0.99.1. 2009-07-15 17:00:05 +10:00
sleepuntil.c Replace X-allocation functions with their C89 counterparts 2010-05-13 00:22:37 +07:00
sleepuntil.h Remove RCS tags. Fix Xprint makefile braindamage. 2006-07-21 17:56:00 -04:00
sync.c Fix gcc -Wwrite-strings warnings in various extensions 2011-11-23 12:15:07 -08:00
syncsdk.h Create/Destroy/Trigger/Reset/Query Fence Sync objs 2010-12-06 19:15:38 -08:00
syncsrv.h Fix gcc -Wwrite-strings warnings in various extensions 2011-11-23 12:15:07 -08:00
xace.c xace: Invalid reference to out-of-scope data. 2010-08-10 16:04:16 -07:00
xace.h Correct outdated e-mail address in "Author" statements. 2009-09-02 17:56:52 -04:00
xacestr.h Correct outdated e-mail address in "Author" statements. 2009-09-02 17:56:52 -04:00
xcmisc.c Unconditionally #include <stdint.h> 2011-09-23 16:46:23 -07:00
xf86bigfont.c Use internal temp variable for swap macros 2011-09-21 17:12:04 -04:00
xf86bigfontsrv.h New header for XF86Bigfont server functions 2010-03-22 00:48:04 -05:00
xres.c xres.c: Preserve constness of string returned by LookupResourceName 2011-12-12 17:03:09 -08:00
xselinux_ext.c Xext: remove unused variable 'n' 2011-11-10 13:21:36 +10:00
xselinux_hooks.c Save major/minor opcodes in ClientRec for RecordAReply 2011-12-01 15:11:20 +00:00
xselinux_label.c Replace X-allocation functions with their C89 counterparts 2010-05-13 00:22:37 +07:00
xselinux.h xselinux: Bump extension minor version. 2010-02-22 17:05:01 -05:00
xselinuxint.h Change the devPrivates API to require dixRegisterPrivateKey 2010-06-05 19:23:03 -07:00
xtest.c Fix gcc -Wwrite-strings warnings in various extensions 2011-11-23 12:15:07 -08:00
xvdisp.c xv: test correct number of requests. (v2) 2011-12-06 16:01:50 +00:00
xvdisp.h Fix swapped Xv dispatch under Xinerama. 2007-12-02 14:15:36 -05:00
xvdix.h xv: Use RESTYPE where appropriate 2011-03-08 13:19:40 -05:00
xvmain.c Xext: Silence warnings when building with clang 2011-04-25 10:45:34 -07:00
xvmc.c Convert strncpy/strncat to strlcpy/strlcat 2011-11-23 12:15:05 -08:00
xvmcext.h Use libtool convenience libraries and better "symbol" table. 2008-12-07 02:22:19 -02:00