diff options
Diffstat (limited to 'net')
-rw-r--r-- | net/dns.c | 2 | ||||
-rw-r--r-- | net/net.c | 2 |
2 files changed, 2 insertions, 2 deletions
@@ -127,7 +127,7 @@ static void dns_handler(void *ctx, char *packet, unsigned len) debug("%s\n", __func__); /* We sent 1 query. We want to see more that 1 answer. */ - header = (struct header *)net_eth_to_udp_payload(packet);; + header = (struct header *)net_eth_to_udp_payload(packet); if (ntohs(header->nqueries) != 1) return; @@ -433,7 +433,7 @@ void net_unregister(struct net_connection *con) static int net_ip_send(struct net_connection *con, int len) { con->ip->tot_len = htons(sizeof(struct iphdr) + len); - con->ip->id = htons(net_ip_id++);; + con->ip->id = htons(net_ip_id++); con->ip->check = 0; con->ip->check = ~net_checksum((unsigned char *)con->ip, sizeof(struct iphdr)); |