Changeset 78d6a50 in rtems
- Timestamp:
- 12/08/00 22:06:54 (23 years ago)
- Branches:
- 4.10, 4.11, 4.8, 4.9, 5, master
- Children:
- cd240018
- Parents:
- dfa6d4b7
- Files:
-
- 10 edited
Legend:
- Unmodified
- Added
- Removed
-
c/src/exec/libnetworking/ChangeLog
rdfa6d4b7 r78d6a50 1 2000-12-08 Joel Sherrill <joel@OARcorp.com> 2 3 * libc/linkaddr.c: Initialized variable to remove warning. 4 * modem/ppp.c, modem/ppp_tty.c: Made numerous variable declarations 5 conditional on PPP_COMPRESS and PPP_FILTER. Commented out variables 6 that were not used because the code using them was commented out. 7 Removed totally unused variables. 8 * modem/pppcompress.c: Added parentheses to avoid warnings. 9 * pppd/pppmain.c: Removed numerous warnings. 10 1 11 2000-11-30 Joel Sherrill <joel@OARcorp.com> 2 12 -
c/src/exec/libnetworking/libc/linkaddr.c
rdfa6d4b7 r78d6a50 61 61 register char *cp = sdl->sdl_data; 62 62 char *cplim = sdl->sdl_len + (char *)sdl; 63 register int byte = 0, state = NAMING, new; 63 register int byte = 0, state = NAMING, 64 new=0; /* new=0 to avoid warning */ 64 65 65 66 bzero((char *)&sdl->sdl_family, sdl->sdl_len - 1); -
c/src/libnetworking/ChangeLog
rdfa6d4b7 r78d6a50 1 2000-12-08 Joel Sherrill <joel@OARcorp.com> 2 3 * libc/linkaddr.c: Initialized variable to remove warning. 4 * modem/ppp.c, modem/ppp_tty.c: Made numerous variable declarations 5 conditional on PPP_COMPRESS and PPP_FILTER. Commented out variables 6 that were not used because the code using them was commented out. 7 Removed totally unused variables. 8 * modem/pppcompress.c: Added parentheses to avoid warnings. 9 * pppd/pppmain.c: Removed numerous warnings. 10 1 11 2000-11-30 Joel Sherrill <joel@OARcorp.com> 2 12 -
c/src/libnetworking/libc/linkaddr.c
rdfa6d4b7 r78d6a50 61 61 register char *cp = sdl->sdl_data; 62 62 char *cplim = sdl->sdl_len + (char *)sdl; 63 register int byte = 0, state = NAMING, new; 63 register int byte = 0, state = NAMING, 64 new=0; /* new=0 to avoid warning */ 64 65 65 66 bzero((char *)&sdl->sdl_family, sdl->sdl_len - 1); -
c/src/libnetworking/modem/ppp.c
rdfa6d4b7 r78d6a50 135 135 static int pppsioctl __P((struct ifnet *, int, caddr_t)); 136 136 static void ppp_requeue __P((struct ppp_softc *)); 137 #ifdef PPP_COMPRESS 137 138 static void ppp_ccp __P((struct ppp_softc *, struct mbuf *m, int rcvd)); 138 139 static void ppp_ccp_closed __P((struct ppp_softc *)); 140 #endif 139 141 static void ppp_inproc __P((struct ppp_softc *, struct mbuf *)); 140 142 static void pppdumpm __P((struct mbuf *m0)); … … 194 196 register struct ppp_softc *sc; 195 197 register int i = 0; 196 extern void (*netisrs[])__P((void)); 198 /* XXX unused in rtems 199 extern void (*netisrs[])__P((void)); */ 197 200 198 201 for (sc = ppp_softc; i < NPPP; sc++) { … … 337 340 struct proc *p; 338 341 { 339 int s, error, flags, mru, nb, npx; 340 struct ppp_option_data *odp; 341 struct compressor **cp; 342 int s, flags, mru, npx; 342 343 struct npioctl *npi; 343 344 time_t t; 344 345 #ifdef PPP_FILTER 346 int error; 345 347 struct bpf_program *bp, *nbp; 346 348 struct bpf_insn *newcode, *oldcode; … … 348 350 #endif /* PPP_FILTER */ 349 351 #ifdef PPP_COMPRESS 352 int nb; 353 struct ppp_option_data *odp; 354 struct compressor **cp; 350 355 u_char ccp_option[CCP_MAX_OPTION_LENGTH]; 351 356 #endif … … 1017 1022 { 1018 1023 struct ppp_softc *sc; 1019 int i, s , s2;1024 int i, s2; 1020 1025 struct mbuf *m; 1021 1026 … … 1190 1195 int s, ilen, xlen, proto, rv; 1191 1196 u_char *cp, adrs, ctrl; 1192 struct mbuf *mp, *dmp = NULL; 1197 struct mbuf *mp; 1198 #ifdef PPP_COMPRESS 1199 *dmp = NULL; 1200 #endif 1193 1201 u_char *iphdr; 1194 1202 u_int hlen; -
c/src/libnetworking/modem/ppp_tty.c
rdfa6d4b7 r78d6a50 304 304 struct ppp_softc *sc; 305 305 { 306 int s;307 308 306 if (sc->sc_outm) { 309 307 m_freem(sc->sc_outm); … … 323 321 * Line specific (tty) read routine. 324 322 */ 325 pppread(struct rtems_termios_tty *tty,323 int pppread(struct rtems_termios_tty *tty, 326 324 rtems_libio_rw_args_t *rw_args) 327 325 { … … 331 329 332 330 struct mbuf *m, *m0; 333 register int s;334 int error = 0;335 331 rtems_interval ticks; 336 332 register struct ppp_softc *sc = (struct ppp_softc *)tty->t_sc; … … 381 377 rtems_libio_rw_args_t *rw_args) 382 378 { 383 int count,len;379 int len; 384 380 char *out_buffer; 385 381 int n,maximum; … … 575 571 void modem_sendpacket(struct rtems_termios_tty *tty) 576 572 { 577 struct mbuf *l = NULL;578 rtems_unsigned16 status;579 int curr;580 573 register struct mbuf *m; 581 574 register int len; 582 575 register u_char *start, *stop, *cp; 583 int n, ndone, done , idle;576 int n, ndone, done; 584 577 struct mbuf *m2; 585 int s;586 578 char c; 587 579 register struct ppp_softc *sc=tty->t_sc; … … 680 672 done = len == 0; 681 673 if (done && m->m_next == NULL) { 682 u_char *p , *q;674 u_char *p; 683 675 int c; 684 676 u_char endseq[8]; … … 792 784 struct ppp_softc *sc = tty->t_sc; 793 785 struct rtems_termios_tty *tp = (struct rtems_termios_tty *) sc->sc_devp; 794 int s;795 786 796 787 sc->sc_flags &= ~SC_TIMEOUT; -
c/src/libnetworking/modem/pppcompress.c
rdfa6d4b7 r78d6a50 279 279 goto uncompressed; 280 280 281 if ( deltaS = (u_short)(ntohs(th->th_win) - ntohs(oth->th_win))) {281 if ((deltaS = (u_short)(ntohs(th->th_win) - ntohs(oth->th_win)))) { 282 282 ENCODE(deltaS); 283 283 changes |= NEW_W; 284 284 } 285 285 286 if ( deltaA = ntohl(th->th_ack) - ntohl(oth->th_ack)) {286 if ((deltaA = ntohl(th->th_ack) - ntohl(oth->th_ack))) { 287 287 if (deltaA > 0xffff) 288 288 goto uncompressed; … … 291 291 } 292 292 293 if ( deltaS = ntohl(th->th_seq) - ntohl(oth->th_seq)) {293 if ((deltaS = ntohl(th->th_seq) - ntohl(oth->th_seq))) { 294 294 if (deltaS > 0xffff) 295 295 goto uncompressed; -
c/src/libnetworking/pppd/pppmain.c
rdfa6d4b7 r78d6a50 40 40 #include <sys/stat.h> 41 41 #include <sys/socket.h> 42 #include <rtems/rtems/tasks.h>43 42 #include <sys/types.h> 44 43 #include <netinet/in.h> 44 45 #include <rtems.h> 46 #include <rtems/rtems_bsdnet.h> 45 47 46 48 /* #include <stbconfig.h> */ … … 73 75 void SetStatusInfo(int state, char * text, int res); 74 76 77 /* prototypes for routines in this file */ 78 int connect_script(int fd); 79 75 80 /* interface vars */ 76 81 char ifname[32]; /* Interface name */ … … 108 113 /* Prototypes for procedures local to this file. */ 109 114 static void cleanup(void); 110 static void create_pidfile __P((void));111 115 static void close_tty __P((void)); 112 116 static void get_input __P((void)); … … 114 118 static struct timeval *timeleft __P((struct timeval *)); 115 119 static void holdoff_end __P((void *)); 120 static void reap_kids __P((void)); 121 /* XXX currently unused */ 122 #if 0 116 123 static int device_script __P((char *[], int, int)); 117 static void reap_kids __P((void));118 124 static void pr_log __P((void *, char *,...)); 125 #endif 119 126 120 127 extern char *ttyname __P((int)); … … 165 172 { 166 173 int i; 174 #if 0 167 175 struct timeval timo; 176 #endif 168 177 struct protent *protp; 169 178 struct stat statbuf; 179 #if 0 170 180 char t[100]; 181 #endif 171 182 172 183 … … 758 769 } 759 770 760 static int input_fd, output_fd;761 #include <rtems/rtems/tasks.h>762 763 764 765 771 int modem_fd; /* FIXME: should not be global... */ 766 772 int connect_script(int fd) 767 773 { 768 int status;769 774 #if 0 /* FIXME: This is WinNT special */ 770 775 char program[256] = "TIMEOUT@10@@CLIENT@CLIENTSERVER"; … … 776 781 GlobalSystemStatus * volatile stat; 777 782 #endif 783 #if 0 778 784 /* Connect scripts are almost the same as in Linux Chat ... */ 779 785 static char *scripts[] = … … 782 788 "TIMEOUT@5@@\rAT@OK-+++\\c-OK@ATH0@TIMEOUT@90@OK@ATDT%s@CONNECT@@ppp@@Username:@%s@Password:@%s@" 783 789 }; 790 #endif 784 791 modem_fd = fd; 785 792 #if 0 … … 899 906 900 907 908 /* XXX currently unused */ 909 #if 0 901 910 static void 902 911 pr_log __V((void *arg, char *fmt,...)) … … 926 935 linep += n; 927 936 } 937 #endif 928 938 929 939 /* -
cpukit/libnetworking/ChangeLog
rdfa6d4b7 r78d6a50 1 2000-12-08 Joel Sherrill <joel@OARcorp.com> 2 3 * libc/linkaddr.c: Initialized variable to remove warning. 4 * modem/ppp.c, modem/ppp_tty.c: Made numerous variable declarations 5 conditional on PPP_COMPRESS and PPP_FILTER. Commented out variables 6 that were not used because the code using them was commented out. 7 Removed totally unused variables. 8 * modem/pppcompress.c: Added parentheses to avoid warnings. 9 * pppd/pppmain.c: Removed numerous warnings. 10 1 11 2000-11-30 Joel Sherrill <joel@OARcorp.com> 2 12 -
cpukit/libnetworking/libc/linkaddr.c
rdfa6d4b7 r78d6a50 61 61 register char *cp = sdl->sdl_data; 62 62 char *cplim = sdl->sdl_len + (char *)sdl; 63 register int byte = 0, state = NAMING, new; 63 register int byte = 0, state = NAMING, 64 new=0; /* new=0 to avoid warning */ 64 65 65 66 bzero((char *)&sdl->sdl_family, sdl->sdl_len - 1);
Note: See TracChangeset
for help on using the changeset viewer.