projects
/
musl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
05ea045
)
use a more-correct integer type, and silence 64-bit warnings as a bonus
author
Rich Felker
<dalias@aerifal.cx>
Mon, 14 Feb 2011 04:38:21 +0000
(23:38 -0500)
committer
Rich Felker
<dalias@aerifal.cx>
Mon, 14 Feb 2011 04:38:21 +0000
(23:38 -0500)
src/locale/iconv.c
patch
|
blob
|
history
diff --git
a/src/locale/iconv.c
b/src/locale/iconv.c
index
4e46c7e
..
ce2c364
100644
(file)
--- a/
src/locale/iconv.c
+++ b/
src/locale/iconv.c
@@
-292,7
+292,7
@@
static int fuzzycmp(const char *a, const char *b)
return *a != *b;
}
return *a != *b;
}
-static
in
t find_charmap(const char *name)
+static
size_
t find_charmap(const char *name)
{
const unsigned char *s;
for (s=charmaps; *s; ) {
{
const unsigned char *s;
for (s=charmaps; *s; ) {
@@
-308,7
+308,7
@@
static int find_charmap(const char *name)
iconv_t iconv_open(const char *to, const char *from)
{
iconv_t iconv_open(const char *to, const char *from)
{
-
in
t f, t;
+
size_
t f, t;
if ((t = find_charmap(to)) < 0 || (f = find_charmap(from)) < 0) {
errno = EINVAL;
if ((t = find_charmap(to)) < 0 || (f = find_charmap(from)) < 0) {
errno = EINVAL;