diff options
author | Daniel Stone <daniel@fooishbar.org> | 2008-06-11 15:09:46 +0300 |
---|---|---|
committer | Daniel Stone <daniel@fooishbar.org> | 2008-07-16 01:38:22 +0300 |
commit | 11f9e3520249a603b95e64503ee759998ff17feb (patch) | |
tree | fffdba60e0d63a25ee4b819de5546c63dd31ab71 /include | |
parent | ae38151ddda9984effca5bb7c582540061201dce (diff) |
DIX: Add strncasecmp from FreeBSD, make strcasecmp args const
Add strncasecmp (as we're now using it) in case someone doesn't have it,
and also change strncasecmp args to be const, in accordance with
everything else.
Diffstat (limited to 'include')
-rw-r--r-- | include/dix.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/include/dix.h b/include/dix.h index 300718dd9..a8c2b3b5a 100644 --- a/include/dix.h +++ b/include/dix.h @@ -601,7 +601,12 @@ typedef struct { /* strcasecmp.c */ #if NEED_STRCASECMP #define strcasecmp xstrcasecmp -extern int xstrcasecmp(char *s1, char *s2); +extern int xstrcasecmp(const char *s1, const char *s2); +#endif + +#if NEED_STRNCASECMP +#define strncasecmp xstrncasecmp +extern int xstrncasecmp(const char *s1, const char *s2, size_t n); #endif extern int XItoCoreType(int xi_type); |