diff options
author | Alan Coopersmith <alan.coopersmith@oracle.com> | 2014-05-26 16:03:30 -0700 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2014-05-26 16:03:48 -0700 |
commit | 5256304812e89c1c02bed093d11f96d97216bdbe (patch) | |
tree | 439f5f71410af72cf80cc09e9ccaccf85fbba113 /utils.h | |
parent | e1b1ecd2e9858dca67ed1da90799f1ea34fc9b71 (diff) |
Fix many const char * warnings
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Diffstat (limited to 'utils.h')
-rw-r--r-- | utils.h | 24 |
1 files changed, 12 insertions, 12 deletions
@@ -101,13 +101,13 @@ extern void uFree(Opaque /* ptr */); /***====================================================================***/ -extern Boolean uSetErrorFile(char *name); -extern void uInformation(char *s, ...); -extern void uAction(char *s, ...); -extern void uWarning(char *s, ...); -extern void uError(char *s, ...); -extern void uFatalError(char *s, ...); -extern void uInternalError(char *s, ...); +extern Boolean uSetErrorFile(const char *name); +extern void uInformation(const char *s, ...); +extern void uAction(const char *s, ...); +extern void uWarning(const char *s, ...); +extern void uError(const char *s, ...); +extern void uFatalError(const char *s, ...); +extern void uInternalError(const char *s, ...); /***====================================================================***/ @@ -122,16 +122,16 @@ extern void uInternalError(char *s, ...); #define uStrCaseCmp(s1,s2) (strcasecmp(s1,s2)) #define uStrCasePrefix(p,s) (strncasecmp(p,s,strlen(p))==0) #else -extern int uStrCaseCmp(char * /* s1 */ , - char * /* s2 */); +extern int uStrCaseCmp(const char * /* s1 */ , + const char * /* s2 */); -extern int uStrCasePrefix(char * /* p */ , - char * /* str */); +extern int uStrCasePrefix(const char * /* p */ , + const char * /* str */); #endif #ifdef HAVE_STRDUP #define uStringDup(s1) (strdup(s1)) #else -extern char *uStringDup(char * /* s1 */); +extern char *uStringDup(const char * /* s1 */); #endif /***====================================================================***/ |