diff options
author | Tim J. Robbins <tjr@FreeBSD.org> | 2002-08-04 12:43:53 +0000 |
---|---|---|
committer | Tim J. Robbins <tjr@FreeBSD.org> | 2002-08-04 12:43:53 +0000 |
commit | 4bd5585fbde1575b417a56f470b928f88842c44d (patch) | |
tree | f175caa0ee027c4eb3812725cb817c0e85647bb2 | |
parent | 4645079944183e75b2d56f8481c1b3a4b28b0975 (diff) | |
download | src-4bd5585fbde1575b417a56f470b928f88842c44d.tar.gz src-4bd5585fbde1575b417a56f470b928f88842c44d.zip |
Change wctype_t to an unsigned type to avoid warnings.
Notes
Notes:
svn path=/head/; revision=101314
-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 bbdcae6969e1..b4f19c7284cf 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 2dd5e790e323..81bda6f0c1f7 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 ac8386b2ce8a..5646de57f842 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; |