Fix a C++ warning
authorVolker Lendecke <vl@samba.org>
Sat, 10 Jan 2009 12:02:43 +0000 (13:02 +0100)
committerVolker Lendecke <vl@samba.org>
Sat, 10 Jan 2009 12:05:34 +0000 (13:05 +0100)
source3/smbd/process.c

index 1f24058f253141222bca6655cea9a0705d76fcfa..4b97612ed4c92867d3ccd2d44405d02b8d7dfaba 100644 (file)
@@ -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;