diff options
| author | christos <christos@NetBSD.org> | 2012-03-21 00:35:50 +0000 |
|---|---|---|
| committer | christos <christos@NetBSD.org> | 2012-03-21 00:35:50 +0000 |
| commit | 2c9b85807822dcdde1dba060f9732b79a9c42b02 (patch) | |
| tree | dcde318c5ab5c51f8c78b0bfb87df4e031bf7767 /lib/libc/string | |
| parent | 30d3ce88dc5dfd56b6f3403c2699766fd867bed0 (diff) | |
size_t -> uint8_t
Diffstat (limited to 'lib/libc/string')
| -rw-r--r-- | lib/libc/string/strcspn.c | 6 | ||||
| -rw-r--r-- | lib/libc/string/strspn.c | 6 |
2 files changed, 6 insertions, 6 deletions
diff --git a/lib/libc/string/strcspn.c b/lib/libc/string/strcspn.c index cc40093c113..132f67cfedd 100644 --- a/lib/libc/string/strcspn.c +++ b/lib/libc/string/strcspn.c @@ -1,4 +1,4 @@ -/* $NetBSD: strcspn.c,v 1.17 2009/07/30 21:42:06 dsl Exp $ */ +/* $NetBSD: strcspn.c,v 1.18 2012/03/21 00:35:50 christos Exp $ */ /*- * Copyright (c) 2008 Joerg Sonnenberger @@ -26,7 +26,7 @@ */ #include <sys/cdefs.h> -__RCSID("$NetBSD: strcspn.c,v 1.17 2009/07/30 21:42:06 dsl Exp $"); +__RCSID("$NetBSD: strcspn.c,v 1.18 2012/03/21 00:35:50 christos Exp $"); #include <assert.h> #include <inttypes.h> @@ -39,7 +39,7 @@ __RCSID("$NetBSD: strcspn.c,v 1.17 2009/07/30 21:42:06 dsl Exp $"); size_t strcspn(const char *s, const char *charset) { - static const size_t idx[8] = { 1, 2, 4, 8, 16, 32, 64, 128 }; + static const uint8_t idx[8] = { 1, 2, 4, 8, 16, 32, 64, 128 }; const char *t; uint8_t set[32]; #define UC(a) ((unsigned int)(unsigned char)(a)) diff --git a/lib/libc/string/strspn.c b/lib/libc/string/strspn.c index 9526cde8bfc..ffd6515baf2 100644 --- a/lib/libc/string/strspn.c +++ b/lib/libc/string/strspn.c @@ -1,4 +1,4 @@ -/* $NetBSD: strspn.c,v 1.17 2009/07/30 21:42:06 dsl Exp $ */ +/* $NetBSD: strspn.c,v 1.18 2012/03/21 00:35:50 christos Exp $ */ /*- * Copyright (c) 2008 Joerg Sonnenberger @@ -26,7 +26,7 @@ */ #include <sys/cdefs.h> -__RCSID("$NetBSD: strspn.c,v 1.17 2009/07/30 21:42:06 dsl Exp $"); +__RCSID("$NetBSD: strspn.c,v 1.18 2012/03/21 00:35:50 christos Exp $"); #include <assert.h> #include <inttypes.h> @@ -38,7 +38,7 @@ __RCSID("$NetBSD: strspn.c,v 1.17 2009/07/30 21:42:06 dsl Exp $"); size_t strspn(const char *s, const char *charset) { - static const size_t idx[8] = { 1, 2, 4, 8, 16, 32, 64, 128 }; + static const uint8_t idx[8] = { 1, 2, 4, 8, 16, 32, 64, 128 }; uint8_t set[32]; const char *t; #define UC(a) ((unsigned int)(unsigned char)(a)) |
