Skip to content
Browse files

oops, call errx() with right arguments. thanks leo.

  • Loading branch information...
1 parent 3a2e163 commit 46655ef366dce1b84eb6f49731a8a0db0e615d1d mrg committed May 6, 1997
Showing with 3 additions and 3 deletions.
  1. +3 −3 sbin/swap/swap.c
View
6 sbin/swap/swap.c
@@ -1,4 +1,4 @@
-/* $NetBSD: swap.c,v 1.1.2.2 1997/03/17 00:20:24 mrg Exp $ */
+/* $NetBSD: swap.c,v 1.1.2.3 1997/05/06 12:44:02 mrg Exp $ */
/*
* Copyright (c) 1996, 1997 Matthew R. Green
@@ -165,7 +165,7 @@ list_swap()
struct swapinfo *sip;
if (nswap < 1)
- errx("no swap devices configured");
+ errx(1, "no swap devices configured");
#ifdef DEBUG_SWAPON
fprintf(stderr, "SWAP_NSWAP returned %d\n", nswap);
@@ -177,7 +177,7 @@ list_swap()
fprintf(stderr, "SWAPSTATS returned %d\n", rnswap);
#endif
if (nswap < 0)
- errx("SWAP_STATS");
+ errx(1, "SWAP_STATS");
if (nswap != rnswap)
warnx("SWAP_STATS gave different value than SWAP_NSWAP");

0 comments on commit 46655ef

Please sign in to comment.
Something went wrong with that request. Please try again.