[PATCH] Cast &cp to eliminate a compile-time warning on FreeBSD 8-STABLE.
Signed-off-by: James P. Howard, II <jh@jameshoward.us>
---
utf8.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/utf8.c b/utf8.c
index 7ddff23..a6cc280 100644
--- a/utf8.c
+++ b/utf8.c
@@ -449,7 +449,7 @@ char *reencode_string(const char *in, const char *out_encoding, const char *in_e
cp = (iconv_ibp)in;
while (1) {
- size_t cnt = iconv(conv, &cp, &insz, &outpos, &outsz);
+ size_t cnt = iconv(conv, (const char **)&cp, &insz, &outpos, &outsz);
if (cnt == -1) {
size_t sofar;
--
1.6.5.3