From 50aa8a4ac8184a9b0feb89f6cb9b6a74e856d126 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Sat, 10 Jan 2009 13:02:43 +0100 Subject: Fix a C++ warning --- source3/smbd/process.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source3') 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; -- cgit