Merge branch 'cb/remove-dead-init'
[gitweb.git] / utf8.h
diff --git a/utf8.h b/utf8.h
index dd5ee1052a849e85954d4425e0714fb38dcf1c1f..edea55e093a4713dcd0056da9a31b63f0cb51272 100644 (file)
--- a/utf8.h
+++ b/utf8.h
@@ -27,14 +27,14 @@ void strbuf_utf8_replace(struct strbuf *sb, int pos, int width,
 
 #ifndef NO_ICONV
 char *reencode_string_iconv(const char *in, size_t insz,
-                           iconv_t conv, int *outsz);
-char *reencode_string_len(const char *in, int insz,
+                           iconv_t conv, size_t *outsz);
+char *reencode_string_len(const char *in, size_t insz,
                          const char *out_encoding,
                          const char *in_encoding,
-                         int *outsz);
+                         size_t *outsz);
 #else
-static inline char *reencode_string_len(const char *a, int b,
-                                       const char *c, const char *d, int *e)
+static inline char *reencode_string_len(const char *a, size_t b,
+                                       const char *c, const char *d, size_t *e)
 { if (e) *e = 0; return NULL; }
 #endif