hc
2024-12-19 9370bb92b2d16684ee45cf24e879c93c509162da
kernel/drivers/net/slip/slhc.c
....@@ -91,8 +91,8 @@
9191 struct slcompress *
9292 slhc_init(int rslots, int tslots)
9393 {
94
- register short i;
95
- register struct cstate *ts;
94
+ short i;
95
+ struct cstate *ts;
9696 struct slcompress *comp;
9797
9898 if (rslots < 0 || rslots > 255 || tslots < 0 || tslots > 255)
....@@ -206,7 +206,7 @@
206206 static long
207207 decode(unsigned char **cpp)
208208 {
209
- register int x;
209
+ int x;
210210
211211 x = *(*cpp)++;
212212 if(x == 0){
....@@ -227,14 +227,14 @@
227227 slhc_compress(struct slcompress *comp, unsigned char *icp, int isize,
228228 unsigned char *ocp, unsigned char **cpp, int compress_cid)
229229 {
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;
235235 int nlen, hlen;
236236 unsigned char new_seq[16];
237
- register unsigned char *cp = new_seq;
237
+ unsigned char *cp = new_seq;
238238 struct iphdr *ip;
239239 struct tcphdr *th, *oth;
240240 __sum16 csum;
....@@ -492,11 +492,11 @@
492492 int
493493 slhc_uncompress(struct slcompress *comp, unsigned char *icp, int isize)
494494 {
495
- register int changes;
495
+ int changes;
496496 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;
500500 int len, hdrlen;
501501 unsigned char *cp = icp;
502502
....@@ -549,7 +549,7 @@
549549 switch(changes & SPECIALS_MASK){
550550 case SPECIAL_I: /* Echoed terminal traffic */
551551 {
552
- register short i;
552
+ short i;
553553 i = ntohs(ip->tot_len) - hdrlen;
554554 thp->ack_seq = htonl( ntohl(thp->ack_seq) + i);
555555 thp->seq = htonl( ntohl(thp->seq) + i);
....@@ -643,7 +643,7 @@
643643 int
644644 slhc_remember(struct slcompress *comp, unsigned char *icp, int isize)
645645 {
646
- register struct cstate *cs;
646
+ struct cstate *cs;
647647 unsigned ihl;
648648
649649 unsigned char index;