useg = NULL;\r
}\r
else {\r
- for (useg = pcb->unsent; useg->next != NULL; useg = useg->next);\r
+ for (useg = pcb->unsent; useg->next != NULL; useg = useg->next){}\r
}\r
/* { useg is last segment on the unsent queue, NULL if list is empty } */\r
\r
/* useg should point to last segment on unacked queue */\r
useg = pcb->unacked;\r
if (useg != NULL) {\r
- for (; useg->next != NULL; useg = useg->next);\r
+ for (; useg->next != NULL; useg = useg->next){}\r
}\r
\r
/* If the TF_ACK_NOW flag is set and no data will be sent (either\r
}\r
\r
/* Move all unacked segments to the head of the unsent queue */\r
- for (seg = pcb->unacked; seg->next != NULL; seg = seg->next);\r
+ for (seg = pcb->unacked; seg->next != NULL; seg = seg->next){}\r
/* concatenate unsent queue after unacked queue */\r
seg->next = pcb->unsent;\r
/* unsent queue is the concatenated queue (of unacked, unsent) */\r