.. | .. |
---|
91 | 91 | struct slcompress * |
---|
92 | 92 | slhc_init(int rslots, int tslots) |
---|
93 | 93 | { |
---|
94 | | - register short i; |
---|
95 | | - register struct cstate *ts; |
---|
| 94 | + short i; |
---|
| 95 | + struct cstate *ts; |
---|
96 | 96 | struct slcompress *comp; |
---|
97 | 97 | |
---|
98 | 98 | if (rslots < 0 || rslots > 255 || tslots < 0 || tslots > 255) |
---|
.. | .. |
---|
206 | 206 | static long |
---|
207 | 207 | decode(unsigned char **cpp) |
---|
208 | 208 | { |
---|
209 | | - register int x; |
---|
| 209 | + int x; |
---|
210 | 210 | |
---|
211 | 211 | x = *(*cpp)++; |
---|
212 | 212 | if(x == 0){ |
---|
.. | .. |
---|
227 | 227 | slhc_compress(struct slcompress *comp, unsigned char *icp, int isize, |
---|
228 | 228 | unsigned char *ocp, unsigned char **cpp, int compress_cid) |
---|
229 | 229 | { |
---|
230 | | - register struct cstate *ocs = &(comp->tstate[comp->xmit_oldest]); |
---|
231 | | - register struct cstate *lcs = ocs; |
---|
232 | | - register struct cstate *cs = lcs->next; |
---|
233 | | - register unsigned long deltaS, deltaA; |
---|
234 | | - register short changes = 0; |
---|
| 230 | + struct cstate *ocs = &(comp->tstate[comp->xmit_oldest]); |
---|
| 231 | + struct cstate *lcs = ocs; |
---|
| 232 | + struct cstate *cs = lcs->next; |
---|
| 233 | + unsigned long deltaS, deltaA; |
---|
| 234 | + short changes = 0; |
---|
235 | 235 | int nlen, hlen; |
---|
236 | 236 | unsigned char new_seq[16]; |
---|
237 | | - register unsigned char *cp = new_seq; |
---|
| 237 | + unsigned char *cp = new_seq; |
---|
238 | 238 | struct iphdr *ip; |
---|
239 | 239 | struct tcphdr *th, *oth; |
---|
240 | 240 | __sum16 csum; |
---|
.. | .. |
---|
492 | 492 | int |
---|
493 | 493 | slhc_uncompress(struct slcompress *comp, unsigned char *icp, int isize) |
---|
494 | 494 | { |
---|
495 | | - register int changes; |
---|
| 495 | + int changes; |
---|
496 | 496 | long x; |
---|
497 | | - register struct tcphdr *thp; |
---|
498 | | - register struct iphdr *ip; |
---|
499 | | - register struct cstate *cs; |
---|
| 497 | + struct tcphdr *thp; |
---|
| 498 | + struct iphdr *ip; |
---|
| 499 | + struct cstate *cs; |
---|
500 | 500 | int len, hdrlen; |
---|
501 | 501 | unsigned char *cp = icp; |
---|
502 | 502 | |
---|
.. | .. |
---|
549 | 549 | switch(changes & SPECIALS_MASK){ |
---|
550 | 550 | case SPECIAL_I: /* Echoed terminal traffic */ |
---|
551 | 551 | { |
---|
552 | | - register short i; |
---|
| 552 | + short i; |
---|
553 | 553 | i = ntohs(ip->tot_len) - hdrlen; |
---|
554 | 554 | thp->ack_seq = htonl( ntohl(thp->ack_seq) + i); |
---|
555 | 555 | thp->seq = htonl( ntohl(thp->seq) + i); |
---|
.. | .. |
---|
643 | 643 | int |
---|
644 | 644 | slhc_remember(struct slcompress *comp, unsigned char *icp, int isize) |
---|
645 | 645 | { |
---|
646 | | - register struct cstate *cs; |
---|
| 646 | + struct cstate *cs; |
---|
647 | 647 | unsigned ihl; |
---|
648 | 648 | |
---|
649 | 649 | unsigned char index; |
---|