diff options
author | Andrew Bartlett <abartlet@samba.org> | 2002-09-27 03:05:20 +0000 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2002-09-27 03:05:20 +0000 |
commit | 55b6cebbd49be484fb6dcde2f8cb8412bb116276 (patch) | |
tree | b8214a9f6905ff3c3eb10e2e02803a6e098bfce4 /source3/lib/charcnv.c | |
parent | af8b3466770c7fcf751d9a036ff88a884f516b13 (diff) | |
download | samba-55b6cebbd49be484fb6dcde2f8cb8412bb116276.tar.gz samba-55b6cebbd49be484fb6dcde2f8cb8412bb116276.tar.bz2 samba-55b6cebbd49be484fb6dcde2f8cb8412bb116276.zip |
Some small cleanups to the libads code (mainly error checking), and give a
sane prototype for the push_utf8_allocate code.
Andrew Bartlett
(This used to be commit ce00a3238ed8a82639c4d0ee3e960f7000b1a7b0)
Diffstat (limited to 'source3/lib/charcnv.c')
-rw-r--r-- | source3/lib/charcnv.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/lib/charcnv.c b/source3/lib/charcnv.c index cd8aa4fe55..d0cef52c92 100644 --- a/source3/lib/charcnv.c +++ b/source3/lib/charcnv.c @@ -522,12 +522,12 @@ int push_utf8_talloc(TALLOC_CTX *ctx, char **dest, const char *src) * * @retval The number of bytes occupied by the string in the destination **/ -int push_utf8_allocate(void **dest, const char *src) +int push_utf8_allocate(char **dest, const char *src) { int src_len = strlen(src)+1; *dest = NULL; - return convert_string_allocate(CH_UNIX, CH_UTF8, src, src_len, dest); + return convert_string_allocate(CH_UNIX, CH_UTF8, src, src_len, (void **)dest); } /**************************************************************************** |