summaryrefslogtreecommitdiffstats
path: root/librpc/ndr/ndr_drsuapi.c
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2011-08-09 12:40:55 +0200
committerStefan Metzmacher <metze@samba.org>2011-08-09 13:53:01 +0200
commit857ad72cac5291ff860b49f0b4a77b7f0ebb32be (patch)
treeaedb69fa730702175053cfb2e8924c3013133622 /librpc/ndr/ndr_drsuapi.c
parente2733d362d97f0dca5b622e54d73ae0e0cc643f0 (diff)
downloadsamba-857ad72cac5291ff860b49f0b4a77b7f0ebb32be.tar.gz
samba-857ad72cac5291ff860b49f0b4a77b7f0ebb32be.tar.xz
samba-857ad72cac5291ff860b49f0b4a77b7f0ebb32be.zip
ndr_drsuapi: fix compiler warning
metze
Diffstat (limited to 'librpc/ndr/ndr_drsuapi.c')
-rw-r--r--librpc/ndr/ndr_drsuapi.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/librpc/ndr/ndr_drsuapi.c b/librpc/ndr/ndr_drsuapi.c
index 852153a7e6..f7125e6e55 100644
--- a/librpc/ndr/ndr_drsuapi.c
+++ b/librpc/ndr/ndr_drsuapi.c
@@ -101,7 +101,7 @@ static void _print_drsuapi_DsAttributeValue_attid(struct ndr_print *ndr, const c
static void _print_drsuapi_DsAttributeValue_str(struct ndr_print *ndr, const char *name,
const struct drsuapi_DsAttributeValue *r)
{
- char *str;
+ void *p;
size_t converted_size = 0;
ndr_print_struct(ndr, name, "drsuapi_DsAttributeValue");
@@ -110,9 +110,10 @@ static void _print_drsuapi_DsAttributeValue_str(struct ndr_print *ndr, const cha
CH_UTF16, CH_UNIX,
r->blob->data,
r->blob->length,
- (void **)&str, &converted_size)) {
+ &p, &converted_size)) {
ndr_print_string(ndr, "string", "INVALID CONVERSION");
} else {
+ char *str = (char *)p;
ndr_print_string(ndr, "string", str);
talloc_free(str);
}