=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/netstat/Attic/atalk.c,v retrieving revision 1.12 retrieving revision 1.13 diff -c -r1.12 -r1.13 *** src/usr.bin/netstat/Attic/atalk.c 2004/03/13 22:02:13 1.12 --- src/usr.bin/netstat/Attic/atalk.c 2005/03/25 17:01:03 1.13 *************** *** 1,4 **** ! /* $OpenBSD: atalk.c,v 1.12 2004/03/13 22:02:13 deraadt Exp $ */ /* $NetBSD: atalk.c,v 1.2 1997/05/22 17:21:26 christos Exp $ */ /* --- 1,4 ---- ! /* $OpenBSD: atalk.c,v 1.13 2005/03/25 17:01:03 jaredy Exp $ */ /* $NetBSD: atalk.c,v 1.2 1997/05/22 17:21:26 christos Exp $ */ /* *************** *** 34,40 **** #if 0 static char sccsid[] = "from @(#)atalk.c 1.1 (Whistle) 6/6/96"; #else ! static char rcsid[] = "$OpenBSD: atalk.c,v 1.12 2004/03/13 22:02:13 deraadt Exp $"; #endif #endif /* not lint */ --- 34,40 ---- #if 0 static char sccsid[] = "from @(#)atalk.c 1.1 (Whistle) 6/6/96"; #else ! static char rcsid[] = "$OpenBSD: atalk.c,v 1.13 2005/03/25 17:01:03 jaredy Exp $"; #endif #endif /* not lint */ *************** *** 251,264 **** if (off == 0) return; ! if (kread(off, (char *) &initial, sizeof(struct ddpcb *)) < 0) return; ddpcb = cb; prev = (struct ddpcb *) off; for (next = initial; next != NULL; prev = next) { u_long ppcb = (u_long) next; ! if (kread((u_long) next, (char *) &ddpcb, sizeof(ddpcb)) < 0) return; next = ddpcb.ddp_next; #if 0 --- 251,264 ---- if (off == 0) return; ! if (kread(off, &initial, sizeof(struct ddpcb *)) < 0) return; ddpcb = cb; prev = (struct ddpcb *) off; for (next = initial; next != NULL; prev = next) { u_long ppcb = (u_long) next; ! if (kread((u_long) next, &ddpcb, sizeof(ddpcb)) < 0) return; next = ddpcb.ddp_next; #if 0 *************** *** 266,273 **** continue; } #endif ! if (kread((u_long) ddpcb.ddp_socket, ! (char *) &sockb, sizeof(sockb)) < 0) return; if (first) { printf("Active ATALK connections"); --- 266,273 ---- continue; } #endif ! if (kread((u_long) ddpcb.ddp_socket, &sockb, ! sizeof(sockb)) < 0) return; if (first) { printf("Active ATALK connections"); *************** *** 312,318 **** if (off == 0) return; ! if (kread(off, (char *) &ddpstat, sizeof(ddpstat)) < 0) return; printf("%s:\n", name); p(ddps_short, "\t%ld packet%s with short headers\n"); --- 312,318 ---- if (off == 0) return; ! if (kread(off, &ddpstat, sizeof(ddpstat)) < 0) return; printf("%s:\n", name); p(ddps_short, "\t%ld packet%s with short headers\n");