=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/netstat/main.c,v retrieving revision 1.45 retrieving revision 1.46 diff -c -r1.45 -r1.46 *** src/usr.bin/netstat/main.c 2004/04/01 07:55:17 1.45 --- src/usr.bin/netstat/main.c 2004/06/06 16:55:31 1.46 *************** *** 1,4 **** ! /* $OpenBSD: main.c,v 1.45 2004/04/01 07:55:17 markus Exp $ */ /* $NetBSD: main.c,v 1.9 1996/05/07 02:55:02 thorpej Exp $ */ /* --- 1,4 ---- ! /* $OpenBSD: main.c,v 1.46 2004/06/06 16:55:31 cedric Exp $ */ /* $NetBSD: main.c,v 1.9 1996/05/07 02:55:02 thorpej Exp $ */ /* *************** *** 40,46 **** #if 0 static char sccsid[] = "from: @(#)main.c 8.4 (Berkeley) 3/1/94"; #else ! static char *rcsid = "$OpenBSD: main.c,v 1.45 2004/04/01 07:55:17 markus Exp $"; #endif #endif /* not lint */ --- 40,46 ---- #if 0 static char sccsid[] = "from: @(#)main.c 8.4 (Berkeley) 3/1/94"; #else ! static char *rcsid = "$OpenBSD: main.c,v 1.46 2004/06/06 16:55:31 cedric Exp $"; #endif #endif /* not lint */ *************** *** 311,317 **** af = AF_UNSPEC; ! while ((ch = getopt(argc, argv, "Aabdf:gI:ilM:mN:np:qrstuvw:")) != -1) switch (ch) { case 'A': Aflag = 1; --- 311,317 ---- af = AF_UNSPEC; ! while ((ch = getopt(argc, argv, "Aabdf:gI:ilM:mN:np:qrSstuvw:")) != -1) switch (ch) { case 'A': Aflag = 1; *************** *** 390,395 **** --- 390,398 ---- break; case 'r': rflag = 1; + break; + case 'S': + Sflag = 1; break; case 's': ++sflag;