summaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorAlexander Aring <alex.aring@gmail.com>2013-11-14 14:30:08 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2013-11-18 10:13:35 +0100
commit32a57751252ffe1adc8f3dc95ff937d2daa3f856 (patch)
treed96cd31857275b029b1b6b12152c998efeb65eb2 /net
parentc8daebdfd857feb338f12b2d8cdb95c1ae87698d (diff)
downloadbarebox-32a57751252ffe1adc8f3dc95ff937d2daa3f856.tar.gz
barebox-32a57751252ffe1adc8f3dc95ff937d2daa3f856.tar.xz
barebox: remove double semicolons
Signed-off-by: Alexander Aring <alex.aring@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'net')
-rw-r--r--net/dns.c2
-rw-r--r--net/net.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/net/dns.c b/net/dns.c
index eb96c5760..afd2663f8 100644
--- a/net/dns.c
+++ b/net/dns.c
@@ -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;
diff --git a/net/net.c b/net/net.c
index 058a4d328..9ef0784da 100644
--- a/net/net.c
+++ b/net/net.c
@@ -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));