diff options
author | Alan Coopersmith <alan.coopersmith@oracle.com> | 2011-09-26 15:07:57 -0700 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2011-09-26 15:07:57 -0700 |
commit | 1353bd6b52241857f9e37cc6403e1fee3c5e69e4 (patch) | |
tree | 1a96880957e873cd4d3fc20d56aa1c1c88b8de7c | |
parent | 750fbfe7562e94788e5dfecb6617e26d6d3f0157 (diff) |
Add const attributes to fix gcc -Wwrite-strings warnings
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
-rw-r--r-- | src/FSlibInt.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/FSlibInt.c b/src/FSlibInt.c index 16c803f..5a33b64 100644 --- a/src/FSlibInt.c +++ b/src/FSlibInt.c @@ -61,7 +61,7 @@ in this Software without prior written authorization from The Open Group. #include <X11/Xos.h> static void _EatData32 ( FSServer *svr, unsigned long n ); -static char * _SysErrorMsg ( int n ); +static const char * _SysErrorMsg ( int n ); /* check for both EAGAIN and EWOULDBLOCK, because some supposedly POSIX * systems are broken and return EWOULDBLOCK when they should return EAGAIN @@ -938,7 +938,7 @@ _FSWireToEvent( } -static char * +static const char * _SysErrorMsg(int n) { char *s = strerror(n); @@ -1018,7 +1018,7 @@ _FSPrintDefaultError( char buffer[BUFSIZ]; char mesg[BUFSIZ]; char number[32]; - char *mtype = "FSlibMessage"; + const char *mtype = "FSlibMessage"; register _FSExtension *ext = (_FSExtension *) NULL; (void) FSGetErrorText(svr, event->error_code, buffer, BUFSIZ); |