diff options
author | tjr <tjr@FreeBSD.org> | 2002-08-04 12:43:53 +0000 |
---|---|---|
committer | tjr <tjr@FreeBSD.org> | 2002-08-04 12:43:53 +0000 |
commit | 2e02b2970dc44fd49c53fc8bd1dc8e8f8a0cd486 (patch) | |
tree | f175caa0ee027c4eb3812725cb817c0e85647bb2 | |
parent | c7dfca65ec8e30de1b40fcf31c4e140cc8a705e8 (diff) | |
download | FreeBSD-src-2e02b2970dc44fd49c53fc8bd1dc8e8f8a0cd486.zip FreeBSD-src-2e02b2970dc44fd49c53fc8bd1dc8e8f8a0cd486.tar.gz |
Change wctype_t to an unsigned type to avoid warnings.
-rw-r--r-- | include/wchar.h | 2 | ||||
-rw-r--r-- | include/wctype.h | 2 | ||||
-rw-r--r-- | lib/libc/locale/wctype.c | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/include/wchar.h b/include/wchar.h index bbdcae6..b4f19c7 100644 --- a/include/wchar.h +++ b/include/wchar.h @@ -96,7 +96,7 @@ typedef _BSD_SIZE_T_ size_t; #endif #ifndef _WCTYPE_T -typedef long wctype_t; +typedef unsigned long wctype_t; #define _WCTYPE_T #endif diff --git a/include/wctype.h b/include/wctype.h index 2dd5e79..81bda6f 100644 --- a/include/wctype.h +++ b/include/wctype.h @@ -47,7 +47,7 @@ typedef int wctrans_t; #endif #ifndef _WCTYPE_T -typedef long wctype_t; +typedef unsigned long wctype_t; #define _WCTYPE_T #endif diff --git a/lib/libc/locale/wctype.c b/lib/libc/locale/wctype.c index ac8386b..5646de5 100644 --- a/lib/libc/locale/wctype.c +++ b/lib/libc/locale/wctype.c @@ -61,7 +61,7 @@ wctype(const char *property) { "ideogram", _CTYPE_I }, /* BSD extension */ { "special", _CTYPE_T }, /* BSD extension */ { "phonogram", _CTYPE_Q }, /* BSD extension */ - { NULL, 0L }, /* Default */ + { NULL, 0UL }, /* Default */ }; int i; |