=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/systat/swap.c,v retrieving revision 1.27 retrieving revision 1.28 diff -c -r1.27 -r1.28 *** src/usr.bin/systat/swap.c 2015/08/20 22:32:42 1.27 --- src/usr.bin/systat/swap.c 2019/06/28 13:35:04 1.28 *************** *** 1,4 **** ! /* $OpenBSD: swap.c,v 1.27 2015/08/20 22:32:42 deraadt Exp $ */ /* $NetBSD: swap.c,v 1.9 1998/12/26 07:05:08 marc Exp $ */ /*- --- 1,4 ---- ! /* $OpenBSD: swap.c,v 1.28 2019/06/28 13:35:04 deraadt Exp $ */ /* $NetBSD: swap.c,v 1.9 1998/12/26 07:05:08 marc Exp $ */ /*- *************** *** 120,126 **** return 0; rnswap = swapctl(SWAP_STATS, (void *)swap_devices, nswap); ! if (rnswap < 0 || nswap != rnswap) return 0; num_disp = nswap; --- 120,126 ---- return 0; rnswap = swapctl(SWAP_STATS, (void *)swap_devices, nswap); ! if (rnswap == -1 || nswap != rnswap) return 0; num_disp = nswap;