summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2010-09-15 13:24:44 +0200
committerGünther Deschner <gd@samba.org>2010-09-15 13:24:44 +0200
commit33d05a85e52dbe349f632fcfbeeb90e5fa9dff5f (patch)
treeb5324e115607958bcca9ec80daa1dd0d0db4ccb0
parent480c97b5b1bbfce220f21250cb707034bd3e5109 (diff)
downloadsamba-33d05a85e52dbe349f632fcfbeeb90e5fa9dff5f.tar.gz
samba-33d05a85e52dbe349f632fcfbeeb90e5fa9dff5f.tar.bz2
samba-33d05a85e52dbe349f632fcfbeeb90e5fa9dff5f.zip
s3-rpc_server: fix some uninitalized variables and c++ build warnings.
Guenther
-rw-r--r--source3/rpc_server/rpc_server.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/rpc_server/rpc_server.c b/source3/rpc_server/rpc_server.c
index 7abb4598b4..5be0e5e07d 100644
--- a/source3/rpc_server/rpc_server.c
+++ b/source3/rpc_server/rpc_server.c
@@ -462,7 +462,7 @@ static void named_pipe_packet_process(struct tevent_req *subreq)
struct named_pipe_client *npc =
tevent_req_callback_data(subreq, struct named_pipe_client);
struct _output_data *out = &npc->p->out_data;
- DATA_BLOB recv_buffer;
+ DATA_BLOB recv_buffer = data_blob_null;
NTSTATUS status;
ssize_t data_left;
ssize_t data_used;
@@ -546,7 +546,7 @@ static void named_pipe_packet_process(struct tevent_req *subreq)
DEBUG(10, ("PDU number: %d, PDU Length: %u\n",
(unsigned int)npc->count,
(unsigned int)npc->iov[npc->count].iov_len));
- dump_data(11, npc->iov[npc->count].iov_base,
+ dump_data(11, (const uint8_t *)npc->iov[npc->count].iov_base,
npc->iov[npc->count].iov_len);
npc->count++;
}