| plan 9 kernel history: overview | file list | diff list |
1992/0111/port/tcpif.c (diff list | history)
| 1991/12171/sys/src/9/port/tcpif.c:3,9 – 1992/0111/sys/src/9/port/tcpif.c:3,9 (short | long | prev | next) | ||
|
Move error.h to ../port. Change errors to actual strings.
rsc Fri Mar 4 12:44:25 2005 | ||
| 1991/0424 | #include "mem.h" #include "dat.h" #include "fns.h" | |
| 1992/0111 | #include "../port/error.h" | |
| 1991/0424 | #include "arp.h" #include "ipdat.h" | |
| 1991/12171/sys/src/9/port/tcpif.c:16,22 – 1992/0111/sys/src/9/port/tcpif.c:16,22 | ||
| 1991/0424 | Block *bp; int len; | |
| 1992/0111 | DPRINT("state_upcall: %s -> %s err %s\n", | |
| 1991/0424 | tcpstate[oldstate], tcpstate[newstate], s->err); if(oldstate == newstate) | |
| 1991/12171/sys/src/9/port/tcpif.c:33,41 – 1992/0111/sys/src/9/port/tcpif.c:33,41 | ||
| 1991/0424 | break; | |
| 1991/1120 | ||
| 1991/0424 | if(s->err) { | |
| 1991/1120 |
| |
| 1992/0111 | len = strlen(s->err); | |
| 1991/0424 | bp = allocb(len); | |
| 1991/1120 |
| |
| 1992/0111 | strcpy((char *)bp->wptr, s->err); | |
| 1991/1120 | bp->wptr += len; | |
| 1991/0424 | } else | |