summaryrefslogtreecommitdiffstats
path: root/source/modules/weird.c
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2004-08-30 21:35:43 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 10:52:32 -0500
commit5d04cd6804f6fc3b556e7c3b53fa0d7af39797c1 (patch)
treebd8ee59b9cd3f08a6010238f016e0bf94ad2eaf5 /source/modules/weird.c
parentc2eff8ef1b65570d2e590f62f026cc18f9142652 (diff)
downloadsamba-5d04cd6804f6fc3b556e7c3b53fa0d7af39797c1.tar.gz
samba-5d04cd6804f6fc3b556e7c3b53fa0d7af39797c1.tar.xz
samba-5d04cd6804f6fc3b556e7c3b53fa0d7af39797c1.zip
r2114: Shameless theft of iconv commit from Samba4 to keep the two libs more in sync :-).
try to cope with a wider range of UTF-16 characters when we are using an external libiconv library. Jeremy.
Diffstat (limited to 'source/modules/weird.c')
-rw-r--r--source/modules/weird.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/modules/weird.c b/source/modules/weird.c
index 444853f3831..3c59fd9d61f 100644
--- a/source/modules/weird.c
+++ b/source/modules/weird.c
@@ -31,7 +31,7 @@ static struct {
{0, NULL}
};
-static size_t weird_pull(void *cd, char **inbuf, size_t *inbytesleft,
+static size_t weird_pull(void *cd, const char **inbuf, size_t *inbytesleft,
char **outbuf, size_t *outbytesleft)
{
while (*inbytesleft >= 1 && *outbytesleft >= 2) {
@@ -74,7 +74,7 @@ static size_t weird_pull(void *cd, char **inbuf, size_t *inbytesleft,
return 0;
}
-static size_t weird_push(void *cd, char **inbuf, size_t *inbytesleft,
+static size_t weird_push(void *cd, const char **inbuf, size_t *inbytesleft,
char **outbuf, size_t *outbytesleft)
{
int ir_count=0;