Remove two write-only variables
authorVolker Lendecke <vl@samba.org>
Sun, 14 Dec 2008 13:45:41 +0000 (14:45 +0100)
committerVolker Lendecke <vl@samba.org>
Fri, 19 Dec 2008 12:18:57 +0000 (13:18 +0100)
If someone wants those stats, please don't use globals :-)

source3/libsmb/nmblib.c

index bfe5e7b97bda22a89303e15c1be05e5e75b41b80..02b13ae63e9718b968a82634174e192521edef40 100644 (file)
@@ -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);
 }