mirror of
https://github.com/oliverschmidt/contiki.git
synced 2025-01-30 21:32:30 +00:00
Code style fix
This commit is contained in:
parent
44d7d9a9a4
commit
b001c14bf2
@ -29,7 +29,7 @@
|
|||||||
*
|
*
|
||||||
* This file is part of the Contiki operating system.
|
* This file is part of the Contiki operating system.
|
||||||
*
|
*
|
||||||
* @(#)$Id: slip.c,v 1.5 2007/11/18 12:27:44 ksb Exp $
|
* @(#)$Id: slip.c,v 1.6 2008/02/03 20:43:35 adamdunkels Exp $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
@ -245,9 +245,10 @@ PROCESS_THREAD(slip_process, ev, data)
|
|||||||
nid = htons(nid);
|
nid = htons(nid);
|
||||||
nid = ~nid; /* negate */
|
nid = ~nid; /* negate */
|
||||||
BUF->ipchksum += nid; /* add */
|
BUF->ipchksum += nid; /* add */
|
||||||
if (BUF->ipchksum < nid) /* 1-complement overflow? */
|
if(BUF->ipchksum < nid) { /* 1-complement overflow? */
|
||||||
BUF->ipchksum++;
|
BUF->ipchksum++;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
tcpip_input();
|
tcpip_input();
|
||||||
} else {
|
} else {
|
||||||
uip_len = 0;
|
uip_len = 0;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user