Commit b0958ebe authored by Juliusz Chroboczek's avatar Juliusz Chroboczek

Remove useless initialisation.

parent a5675bbb
......@@ -49,7 +49,6 @@ THE SOFTWARE.
#include "message.h"
struct timeval now;
const struct timeval tv_zero = {0, 0};
unsigned char myid[16];
int debug = 0;
......@@ -686,7 +685,6 @@ add_network(char *ifname, int ifindex, int mtu, int wired, unsigned int cost)
nets[numnets].activity_time = now.tv_sec;
update_hello_interval(&nets[numnets]);
nets[numnets].bufsize = mtu - sizeof(packet_header);
nets[numnets].flush_time = tv_zero;
strncpy(nets[numnets].ifname, ifname, IF_NAMESIZE);
p = malloc(nets[numnets].bufsize);
if(p == NULL) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment