=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/systat/pigs.c,v retrieving revision 1.6 retrieving revision 1.7 diff -c -r1.6 -r1.7 *** src/usr.bin/systat/pigs.c 2000/06/18 17:59:55 1.6 --- src/usr.bin/systat/pigs.c 2001/05/04 16:48:34 1.7 *************** *** 1,4 **** ! /* $OpenBSD: pigs.c,v 1.6 2000/06/18 17:59:55 niklas Exp $ */ /* $NetBSD: pigs.c,v 1.3 1995/04/29 05:54:50 cgd Exp $ */ /*- --- 1,4 ---- ! /* $OpenBSD: pigs.c,v 1.7 2001/05/04 16:48:34 ericj Exp $ */ /* $NetBSD: pigs.c,v 1.3 1995/04/29 05:54:50 cgd Exp $ */ /*- *************** *** 38,44 **** #if 0 static char sccsid[] = "@(#)pigs.c 8.2 (Berkeley) 9/23/93"; #endif ! static char rcsid[] = "$OpenBSD: pigs.c,v 1.6 2000/06/18 17:59:55 niklas Exp $"; #endif /* not lint */ /* --- 38,44 ---- #if 0 static char sccsid[] = "@(#)pigs.c 8.2 (Berkeley) 9/23/93"; #endif ! static char rcsid[] = "$OpenBSD: pigs.c,v 1.7 2001/05/04 16:48:34 ericj Exp $"; #endif /* not lint */ /* *************** *** 157,168 **** initpigs() { fixpt_t ccpu; if (namelist[X_FIRST].n_type == 0) { ! if (kvm_nlist(kd, namelist)) { nlisterr(namelist); - return(0); - } if (namelist[X_FIRST].n_type == 0) { error("namelist failed"); return(0); --- 157,169 ---- initpigs() { fixpt_t ccpu; + int ret; if (namelist[X_FIRST].n_type == 0) { ! if ((ret = kvm_nlist(kd, namelist)) == -1) ! errx(1, "%s", kvm_geterr(kd)); ! else if (ret) nlisterr(namelist); if (namelist[X_FIRST].n_type == 0) { error("namelist failed"); return(0);