summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2013-05-14 10:52:33 +0200
committerVolker Lendecke <vl@samba.org>2013-05-14 13:19:44 +0200
commit7d8a1b1e0496a15872feedff06da8d762ded4246 (patch)
treeeeb931d313e1085883b3e7bf956f3fa693d1eb27
parent3fda85276b9a3b3df6c5f1341dd586606deacfb1 (diff)
downloadsamba-7d8a1b1e0496a15872feedff06da8d762ded4246.tar.gz
samba-7d8a1b1e0496a15872feedff06da8d762ded4246.tar.bz2
samba-7d8a1b1e0496a15872feedff06da8d762ded4246.zip
smbd: Remove a pointless variable
Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org> Autobuild-User(master): Volker Lendecke <vl@samba.org> Autobuild-Date(master): Tue May 14 13:19:44 CEST 2013 on sn-devel-104
-rw-r--r--source3/smbd/process.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/source3/smbd/process.c b/source3/smbd/process.c
index 3445ae56c5..105efc2258 100644
--- a/source3/smbd/process.c
+++ b/source3/smbd/process.c
@@ -149,7 +149,6 @@ bool srv_send_smb(struct smbd_server_connection *sconn, char *buffer,
struct smb_perfcount_data *pcd)
{
size_t len = 0;
- size_t nwritten=0;
ssize_t ret;
char *buf_out = buffer;
@@ -172,7 +171,7 @@ bool srv_send_smb(struct smbd_server_connection *sconn, char *buffer,
len = smb_len_large(buf_out) + 4;
- ret = write_data(sconn->sock, buf_out+nwritten, len - nwritten);
+ ret = write_data(sconn->sock, buf_out, len);
if (ret <= 0) {
char addr[INET6_ADDRSTRLEN];