diff options
author | Alan Coopersmith <alan.coopersmith@oracle.com> | 2011-09-28 16:19:27 -0700 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2011-10-14 20:44:44 -0700 |
commit | c0c2a0c7819c425f3df0992b6873a15c8ec27e01 (patch) | |
tree | ed8ad7d0012c6f3ed4d8f9cc2881609f38c3da67 | |
parent | a8f18777099ca5d61929bc37e4741457b6671e59 (diff) | |
download | xorg-lib-libXext-c0c2a0c7819c425f3df0992b6873a15c8ec27e01.tar.gz |
Add const attributes to fix gcc -Wwrite-strings warnings
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
-rw-r--r-- | include/X11/extensions/extutil.h | 2 | ||||
-rw-r--r-- | src/DPMS.c | 2 | ||||
-rw-r--r-- | src/MITMisc.c | 2 | ||||
-rw-r--r-- | src/XAppgroup.c | 2 | ||||
-rw-r--r-- | src/XEVI.c | 2 | ||||
-rw-r--r-- | src/XLbx.c | 4 | ||||
-rw-r--r-- | src/XMultibuf.c | 4 | ||||
-rw-r--r-- | src/XSecurity.c | 4 | ||||
-rw-r--r-- | src/XShape.c | 2 | ||||
-rw-r--r-- | src/XShm.c | 4 | ||||
-rw-r--r-- | src/XSync.c | 4 | ||||
-rw-r--r-- | src/Xcup.c | 2 | ||||
-rw-r--r-- | src/Xdbe.c | 4 | ||||
-rw-r--r-- | src/Xge.c | 2 | ||||
-rw-r--r-- | src/extutil.c | 2 |
15 files changed, 21 insertions, 21 deletions
diff --git a/include/X11/extensions/extutil.h b/include/X11/extensions/extutil.h index 7f05aff..29404d5 100644 --- a/include/X11/extensions/extutil.h +++ b/include/X11/extensions/extutil.h @@ -123,7 +123,7 @@ extern void XextDestroyExtension( extern XExtDisplayInfo *XextAddDisplay( XExtensionInfo* /* extinfo */, Display* /* dpy */, - char* /* ext_name */, + _Xconst char* /* ext_name */, XExtensionHooks* /* hooks */, int /* nevents */, XPointer /* data */ @@ -42,7 +42,7 @@ Equipment Corporation. static XExtensionInfo _dpms_info_data; static XExtensionInfo *dpms_info = &_dpms_info_data; -static char *dpms_extension_name = DPMSExtensionName; +static const char *dpms_extension_name = DPMSExtensionName; #define DPMSCheckExtension(dpy,i,val) \ XextCheckExtension (dpy, i, dpms_extension_name, val) diff --git a/src/MITMisc.c b/src/MITMisc.c index bc452db..b8c21b6 100644 --- a/src/MITMisc.c +++ b/src/MITMisc.c @@ -37,7 +37,7 @@ in this Software without prior written authorization from The Open Group. static XExtensionInfo _mit_info_data; static XExtensionInfo *mit_info = &_mit_info_data; -static /* const */ char *mit_extension_name = MITMISCNAME; +static const char *mit_extension_name = MITMISCNAME; #define MITCheckExtension(dpy,i,val) \ XextCheckExtension (dpy, i, mit_extension_name, val) diff --git a/src/XAppgroup.c b/src/XAppgroup.c index 16650b6..b5642f3 100644 --- a/src/XAppgroup.c +++ b/src/XAppgroup.c @@ -52,7 +52,7 @@ struct xagstuff { static XExtensionInfo _xag_info_data; static XExtensionInfo *xag_info = &_xag_info_data; -static char *xag_extension_name = XAGNAME; +static const char *xag_extension_name = XAGNAME; #define XagCheckExtension(dpy,i,val) \ XextCheckExtension (dpy, i, xag_extension_name, val) @@ -31,7 +31,7 @@ THE USE OR PERFORMANCE OF THIS SOFTWARE. #include <X11/extensions/extutil.h> #include <X11/Xutil.h> static XExtensionInfo *xevi_info;/* needs to move to globals.c */ -static /* const */ char *xevi_extension_name = EVINAME; +static const char *xevi_extension_name = EVINAME; #define XeviCheckExtension(dpy,i,val) \ XextCheckExtension (dpy, i, xevi_extension_name, val) /***************************************************************************** @@ -33,7 +33,7 @@ static XExtensionInfo _lbx_info_data; static XExtensionInfo *lbx_info = &_lbx_info_data; -static /* const */ char *lbx_extension_name = LBXNAME; +static const char *lbx_extension_name = LBXNAME; #define LbxCheckExtension(dpy,i,val) \ XextCheckExtension (dpy, i, lbx_extension_name, val) @@ -55,7 +55,7 @@ static /* const */ XExtensionHooks lbx_extension_hooks = { error_string, /* error_string */ }; -static /* const */ char *lbx_error_list[] = { +static const char *lbx_error_list[] = { "BadLbxClient", /* BadLbxClient */ }; diff --git a/src/XMultibuf.c b/src/XMultibuf.c index fb995f8..7a746ba 100644 --- a/src/XMultibuf.c +++ b/src/XMultibuf.c @@ -37,7 +37,7 @@ in this Software without prior written authorization from The Open Group. static XExtensionInfo _multibuf_info_data; static XExtensionInfo *multibuf_info = &_multibuf_info_data; -static /* const */ char *multibuf_extension_name = MULTIBUFFER_PROTOCOL_NAME; +static const char *multibuf_extension_name = MULTIBUFFER_PROTOCOL_NAME; #define MbufCheckExtension(dpy,i,val) \ XextCheckExtension (dpy, i, multibuf_extension_name, val) @@ -72,7 +72,7 @@ static /* const */ XExtensionHooks multibuf_extension_hooks = { error_string, /* error_string */ }; -static /* const */ char *multibuf_error_list[] = { +static const char *multibuf_error_list[] = { "BadBuffer", /* MultibufferBadBuffer */ }; diff --git a/src/XSecurity.c b/src/XSecurity.c index b2aa98c..f8c7da1 100644 --- a/src/XSecurity.c +++ b/src/XSecurity.c @@ -36,7 +36,7 @@ in this Software without prior written authorization from The Open Group. static XExtensionInfo _Security_info_data; static XExtensionInfo *Security_info = &_Security_info_data; -static char *Security_extension_name = SECURITY_EXTENSION_NAME; +static const char *Security_extension_name = SECURITY_EXTENSION_NAME; #define SecurityCheckExtension(dpy,i,val) \ XextCheckExtension (dpy, i, Security_extension_name, val) @@ -76,7 +76,7 @@ static XExtensionHooks Security_extension_hooks = { error_string /* error_string */ }; -static char *security_error_list[] = { +static const char *security_error_list[] = { "BadAuthorization", "BadAuthorizationProtocol" }; diff --git a/src/XShape.c b/src/XShape.c index 1e3a77f..6e8fbae 100644 --- a/src/XShape.c +++ b/src/XShape.c @@ -38,7 +38,7 @@ in this Software without prior written authorization from The Open Group. static XExtensionInfo _shape_info_data; static XExtensionInfo *shape_info = &_shape_info_data; -static /* const */ char *shape_extension_name = SHAPENAME; +static const char *shape_extension_name = SHAPENAME; #define ShapeCheckExtension(dpy,i,val) \ XextCheckExtension (dpy, i, shape_extension_name, val) @@ -40,7 +40,7 @@ in this Software without prior written authorization from The Open Group. static XExtensionInfo _shm_info_data; static XExtensionInfo *shm_info = &_shm_info_data; -static /* const */ char *shm_extension_name = SHMNAME; +static const char *shm_extension_name = SHMNAME; #define ShmCheckExtension(dpy,i,val) \ XextCheckExtension (dpy, i, shm_extension_name, val) @@ -70,7 +70,7 @@ static /* const */ XExtensionHooks shm_extension_hooks = { error_string, /* error_string */ }; -static /* const */ char *shm_error_list[] = { +static const char *shm_error_list[] = { "BadShmSeg", /* BadShmSeg */ }; diff --git a/src/XSync.c b/src/XSync.c index 0e19922..df7c435 100644 --- a/src/XSync.c +++ b/src/XSync.c @@ -62,7 +62,7 @@ PERFORMANCE OF THIS SOFTWARE. static XExtensionInfo _sync_info_data; static XExtensionInfo *sync_info = &_sync_info_data; -static char *sync_extension_name = SYNC_NAME; +static const char *sync_extension_name = SYNC_NAME; #define SyncCheckExtension(dpy,i,val) \ XextCheckExtension(dpy, i, sync_extension_name, val) @@ -89,7 +89,7 @@ static XExtensionHooks sync_extension_hooks = { error_string, /* error_string */ }; -static char *sync_error_list[] = { +static const char *sync_error_list[] = { "BadCounter", "BadAlarm", "BadFence", @@ -39,7 +39,7 @@ in this Software without prior written authorization from The Open Group. static XExtensionInfo _xcup_info_data; static XExtensionInfo *xcup_info = &_xcup_info_data; -static char *xcup_extension_name = XCUPNAME; +static const char *xcup_extension_name = XCUPNAME; /***************************************************************************** * * @@ -42,7 +42,7 @@ static XExtensionInfo _dbe_info_data; static XExtensionInfo *dbe_info = &_dbe_info_data; -static char *dbe_extension_name = DBE_PROTOCOL_NAME; +static const char *dbe_extension_name = DBE_PROTOCOL_NAME; #define DbeCheckExtension(dpy,i,val) \ XextCheckExtension (dpy, i, dbe_extension_name, val) @@ -86,7 +86,7 @@ static XExtensionHooks dbe_extension_hooks = { error_string, /* error_string */ }; -static char *dbe_error_list[] = { +static const char *dbe_error_list[] = { "BadBuffer", /* DbeBadBuffer */ }; @@ -76,7 +76,7 @@ static Bool _xgeCheckExtension(Display* dpy, XExtDisplayInfo* info); /* main extension information data */ static XExtensionInfo *xge_info; -static char xge_extension_name[] = GE_NAME; +static const char xge_extension_name[] = GE_NAME; static XExtensionHooks xge_extension_hooks = { NULL, /* create_gc */ NULL, /* copy_gc */ diff --git a/src/extutil.c b/src/extutil.c index 361a327..93cab73 100644 --- a/src/extutil.c +++ b/src/extutil.c @@ -96,7 +96,7 @@ void XextDestroyExtension (XExtensionInfo *info) XExtDisplayInfo *XextAddDisplay ( XExtensionInfo *extinfo, Display *dpy, - char *ext_name, + _Xconst char *ext_name, XExtensionHooks *hooks, int nevents, XPointer data) |