summaryrefslogtreecommitdiffstats
path: root/include/runetype.h
diff options
context:
space:
mode:
authorache <ache@FreeBSD.org>1996-04-18 07:13:42 +0000
committerache <ache@FreeBSD.org>1996-04-18 07:13:42 +0000
commit25ff7daa478e7a7e3b0e00950b45762198a68687 (patch)
tree7e676b73a1ee6d80a18e5cdb39d71c8fe0c685f1 /include/runetype.h
parent6d0f739b3c11e254bc25da5910233572731d453d (diff)
downloadFreeBSD-src-25ff7daa478e7a7e3b0e00950b45762198a68687.zip
FreeBSD-src-25ff7daa478e7a7e3b0e00950b45762198a68687.tar.gz
Fix sgetrune/sputrune arg type: was unsigned int instead of size_t
Diffstat (limited to 'include/runetype.h')
-rw-r--r--include/runetype.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/include/runetype.h b/include/runetype.h
index 4bce658..057cc35 100644
--- a/include/runetype.h
+++ b/include/runetype.h
@@ -48,6 +48,11 @@ typedef _BSD_WCHAR_T_ wchar_t;
#undef _BSD_WCHAR_T_
#endif
+#ifdef _BSD_SIZE_T_
+typedef _BSD_SIZE_T_ size_t;
+#undef _BSD_SIZE_T_
+#endif
+
#define _CACHED_RUNES (1 <<8 ) /* Must be a power of 2 */
#define _CRMASK (~(_CACHED_RUNES - 1))
@@ -71,9 +76,9 @@ typedef struct {
char encoding[32]; /* ASCII name of this encoding */
rune_t (*sgetrune)
- __P((const char *, unsigned int, char const **));
+ __P((const char *, size_t, char const **));
int (*sputrune)
- __P((rune_t, char *, unsigned int, char **));
+ __P((rune_t, char *, size_t, char **));
rune_t invalid_rune;
unsigned long runetype[_CACHED_RUNES];
OpenPOWER on IntegriCloud