summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2008-04-13 00:24:42 +0200
committerMichael Adam <obnox@samba.org>2008-04-13 00:24:42 +0200
commit25953779884483b9bb49feaa7da0f634ed20681b (patch)
tree31f48db72e867eaf18796df1978d3622ba0b9bb7
parent3aa565e790d559cb88d4a73287943b71eaf31967 (diff)
downloadsamba-25953779884483b9bb49feaa7da0f634ed20681b.tar.gz
samba-25953779884483b9bb49feaa7da0f634ed20681b.tar.bz2
samba-25953779884483b9bb49feaa7da0f634ed20681b.zip
libnetapi: fix a C++ warning by making implicit cast explicit
Michael (This used to be commit b62dd61cc56ec33601289fd4e23058c7f9ad3f0d)
-rw-r--r--source3/lib/netapi/serverinfo.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/lib/netapi/serverinfo.c b/source3/lib/netapi/serverinfo.c
index 58efeb375d..dd7a8808b4 100644
--- a/source3/lib/netapi/serverinfo.c
+++ b/source3/lib/netapi/serverinfo.c
@@ -90,7 +90,7 @@ WERROR NetServerGetInfo_r(struct libnetapi_ctx *ctx,
goto done;
}
- *r->out.buffer = talloc_memdup(ctx, &info, sizeof(info));
+ *r->out.buffer = (uint8_t *)talloc_memdup(ctx, &info, sizeof(info));
if (!*r->out.buffer) {
werr = WERR_NOMEM;
goto done;