summaryrefslogtreecommitdiffstats
path: root/src/rccstring.h
diff options
context:
space:
mode:
authorSuren A. Chilingaryan <csa@dside.dyndns.org>2009-06-13 02:55:34 +0000
committerSuren A. Chilingaryan <csa@dside.dyndns.org>2009-06-13 02:55:34 +0000
commit4a124536a4f422a36e47aa021e53f6d07893e451 (patch)
tree44c2792b9cddf89dbc673d35f8e3b3c6fcf52e20 /src/rccstring.h
parent16a44fad67d6a6fcc12779f094aa5abae20ee10e (diff)
downloadlibrcc-4a124536a4f422a36e47aa021e53f6d07893e451.tar.gz
librcc-4a124536a4f422a36e47aa021e53f6d07893e451.tar.bz2
librcc-4a124536a4f422a36e47aa021e53f6d07893e451.tar.xz
librcc-4a124536a4f422a36e47aa021e53f6d07893e451.zip
Fix of strnlen definition
it should return size_t, not int
Diffstat (limited to 'src/rccstring.h')
-rw-r--r--src/rccstring.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rccstring.h b/src/rccstring.h
index 9847005..40bda89 100644
--- a/src/rccstring.h
+++ b/src/rccstring.h
@@ -40,7 +40,7 @@ int rccStringChangeID(rcc_string string, rcc_language_id language_id);
#ifdef HAVE_STRNLEN
# ifndef strnlen
-int strnlen(const char *str, size_t size);
+size_t strnlen(const char *str, size_t size);
# endif /* !strnlen */
#else
int rccStrnlen(const char *str, size_t size);