summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2009-01-10 13:02:43 +0100
committerVolker Lendecke <vl@samba.org>2009-01-10 13:05:34 +0100
commit50aa8a4ac8184a9b0feb89f6cb9b6a74e856d126 (patch)
tree304cd51fd1688e76829b8740c0cc46f075cb05c7
parentcda0b7051967afaaaafbd3dad2052c66b3035491 (diff)
downloadsamba-50aa8a4ac8184a9b0feb89f6cb9b6a74e856d126.tar.gz
samba-50aa8a4ac8184a9b0feb89f6cb9b6a74e856d126.tar.bz2
samba-50aa8a4ac8184a9b0feb89f6cb9b6a74e856d126.zip
Fix a C++ warning
-rw-r--r--source3/smbd/process.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/smbd/process.c b/source3/smbd/process.c
index 1f24058f25..4b97612ed4 100644
--- a/source3/smbd/process.c
+++ b/source3/smbd/process.c
@@ -406,8 +406,8 @@ static void smbd_deferred_open_timer(struct event_context *ev,
TALLOC_CTX *mem_ctx = talloc_tos();
uint8_t *inbuf;
- inbuf = talloc_memdup(mem_ctx, msg->buf.data,
- msg->buf.length);
+ inbuf = (uint8_t *)talloc_memdup(mem_ctx, msg->buf.data,
+ msg->buf.length);
if (inbuf == NULL) {
exit_server("smbd_deferred_open_timer: talloc failed\n");
return;