mirror of
https://github.com/samba-team/samba.git
synced 2025-12-05 12:23:50 +03:00
Remove two write-only variables
If someone wants those stats, please don't use globals :-)
This commit is contained in:
@@ -21,9 +21,6 @@
|
|||||||
|
|
||||||
#include "includes.h"
|
#include "includes.h"
|
||||||
|
|
||||||
int num_good_sends = 0;
|
|
||||||
int num_good_receives = 0;
|
|
||||||
|
|
||||||
static const struct opcode_names {
|
static const struct opcode_names {
|
||||||
const char *nmb_opcode_name;
|
const char *nmb_opcode_name;
|
||||||
int opcode;
|
int opcode;
|
||||||
@@ -796,8 +793,6 @@ struct packet_struct *read_packet(int fd,enum packet_type packet_type)
|
|||||||
|
|
||||||
packet->fd = fd;
|
packet->fd = fd;
|
||||||
|
|
||||||
num_good_receives++;
|
|
||||||
|
|
||||||
DEBUG(5,("Received a packet of len %d from (%s) port %d\n",
|
DEBUG(5,("Received a packet of len %d from (%s) port %d\n",
|
||||||
length, inet_ntoa(packet->ip), packet->port ) );
|
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",
|
DEBUG(0,("Packet send failed to %s(%d) ERRNO=%s\n",
|
||||||
inet_ntoa(ip),port,strerror(errno)));
|
inet_ntoa(ip),port,strerror(errno)));
|
||||||
|
|
||||||
if (ret)
|
|
||||||
num_good_sends++;
|
|
||||||
|
|
||||||
return(ret);
|
return(ret);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user