Skip to content

Commit

Permalink
Re-fix "inbuf" on linux, it wants a (char **) without the const, sigh.
Browse files Browse the repository at this point in the history
  • Loading branch information
benl committed Feb 3, 2010
1 parent da8e6ee commit 953536c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions cbits/h_iconv.c
Expand Up @@ -9,7 +9,7 @@ void h_iconv_close(iconv_t cd) {
iconv_close(cd);
}

size_t h_iconv(iconv_t cd, const char **inbuf, size_t *inbytesleft,
size_t h_iconv(iconv_t cd, char **inbuf, size_t *inbytesleft,
char **outbuf, size_t *outbytesleft) {
return iconv(cd, inbuf, inbytesleft, outbuf, outbytesleft);
return iconv(cd, (void*)inbuf, inbytesleft, outbuf, outbytesleft);
}
2 changes: 1 addition & 1 deletion includes/h_iconv.h
Expand Up @@ -4,6 +4,6 @@ iconv_t h_iconv_open(const char *tocode, const char *fromcode);

void h_iconv_close(iconv_t cd);

size_t h_iconv(iconv_t cd, const char **inbuf, size_t *inbytesleft,
size_t h_iconv(iconv_t cd, char **inbuf, size_t *inbytesleft,
char **outbuf, size_t *outbytesleft);

0 comments on commit 953536c

Please sign in to comment.