From 637f9d9bf0947600e612057ddcd9caf137b9698e Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Fri, 9 Nov 2007 14:23:16 +0100 Subject: Fix some warnings (This used to be commit 0a1f524e8cce9bbe4fd10467c1f64f7a8862d298) --- source3/libsmb/libsmbclient.c | 3 ++- source3/smbd/process.c | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/source3/libsmb/libsmbclient.c b/source3/libsmb/libsmbclient.c index ff434d275a..dbc51d168e 100644 --- a/source3/libsmb/libsmbclient.c +++ b/source3/libsmb/libsmbclient.c @@ -2671,7 +2671,8 @@ smbc_opendir_ctx(SMBCCTX *context, return NULL; } - ip_list = memdup(&server_addr, sizeof(server_addr)); + ip_list = (struct ip_service *)memdup( + &server_addr, sizeof(server_addr)); if (ip_list == NULL) { errno = ENOMEM; return NULL; diff --git a/source3/smbd/process.c b/source3/smbd/process.c index 24497de69a..5601a7fb6e 100644 --- a/source3/smbd/process.c +++ b/source3/smbd/process.c @@ -190,7 +190,7 @@ ssize_t receive_smb_raw_talloc_partial_read(TALLOC_CTX *mem_ctx, /* Copy the header we've written. */ - *buffer = TALLOC_MEMDUP(mem_ctx, + *buffer = (char *)TALLOC_MEMDUP(mem_ctx, writeX_header, sizeof(writeX_header)); -- cgit