diff options
author | Volker Lendecke <vl@sernet.de> | 2007-11-09 14:23:16 +0100 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2007-11-09 15:16:26 +0100 |
commit | 637f9d9bf0947600e612057ddcd9caf137b9698e (patch) | |
tree | b78cf1f0c36fdae4533b9ac2e79e980170c40679 /source3 | |
parent | 333d83e1eec332e8d135e6538eb519b1ebb755de (diff) | |
download | samba-637f9d9bf0947600e612057ddcd9caf137b9698e.tar.gz samba-637f9d9bf0947600e612057ddcd9caf137b9698e.tar.bz2 samba-637f9d9bf0947600e612057ddcd9caf137b9698e.zip |
Fix some warnings
(This used to be commit 0a1f524e8cce9bbe4fd10467c1f64f7a8862d298)
Diffstat (limited to 'source3')
-rw-r--r-- | source3/libsmb/libsmbclient.c | 3 | ||||
-rw-r--r-- | 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)); |