[SCM] Samba Shared Repository - branch master updated -
7c3497ef5e4d9fe4f9db07912c8e41c3db2e2033
Volker Lendecke
vlendec at samba.org
Fri Dec 19 12:19:37 GMT 2008
The branch, master has been updated
via 7c3497ef5e4d9fe4f9db07912c8e41c3db2e2033 (commit)
from f87da49830960aebe4ffa551e7e1f16330d28cca (commit)
http://gitweb.samba.org/?p=samba.git;a=shortlog;h=master
- Log -----------------------------------------------------------------
commit 7c3497ef5e4d9fe4f9db07912c8e41c3db2e2033
Author: Volker Lendecke <vl at samba.org>
Date: Sun Dec 14 14:45:41 2008 +0100
Remove two write-only variables
If someone wants those stats, please don't use globals :-)
-----------------------------------------------------------------------
Summary of changes:
source3/libsmb/nmblib.c | 8 --------
1 files changed, 0 insertions(+), 8 deletions(-)
Changeset truncated at 500 lines:
diff --git a/source3/libsmb/nmblib.c b/source3/libsmb/nmblib.c
index bfe5e7b..02b13ae 100644
--- a/source3/libsmb/nmblib.c
+++ b/source3/libsmb/nmblib.c
@@ -21,9 +21,6 @@
#include "includes.h"
-int num_good_sends = 0;
-int num_good_receives = 0;
-
static const struct opcode_names {
const char *nmb_opcode_name;
int opcode;
@@ -796,8 +793,6 @@ struct packet_struct *read_packet(int fd,enum packet_type packet_type)
packet->fd = fd;
- num_good_receives++;
-
DEBUG(5,("Received a packet of len %d from (%s) port %d\n",
length, inet_ntoa(packet->ip), packet->port ) );
@@ -838,9 +833,6 @@ static bool send_udp(int fd,char *buf,int len,struct in_addr ip,int port)
DEBUG(0,("Packet send failed to %s(%d) ERRNO=%s\n",
inet_ntoa(ip),port,strerror(errno)));
- if (ret)
- num_good_sends++;
-
return(ret);
}
--
Samba Shared Repository
More information about the samba-cvs
mailing list