Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sbin/swapctl The 3rd argument to swapctl() is an int, don't ...
details: https://anonhg.NetBSD.org/src/rev/0e330ec9b5a3
branches: trunk
changeset: 553761:0e330ec9b5a3
user: fvdl <fvdl%NetBSD.org@localhost>
date: Tue Oct 21 02:32:54 2003 +0000
description:
The 3rd argument to swapctl() is an int, don't pass NULL in it.
diffstat:
sbin/swapctl/swapctl.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diffs (36 lines):
diff -r 41318b42a43e -r 0e330ec9b5a3 sbin/swapctl/swapctl.c
--- a/sbin/swapctl/swapctl.c Tue Oct 21 02:31:43 2003 +0000
+++ b/sbin/swapctl/swapctl.c Tue Oct 21 02:32:54 2003 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: swapctl.c,v 1.22 2003/06/23 11:53:44 agc Exp $ */
+/* $NetBSD: swapctl.c,v 1.23 2003/10/21 02:32:54 fvdl Exp $ */
/*
* Copyright (c) 1996, 1997, 1999 Matthew R. Green
@@ -55,7 +55,7 @@
#include <sys/cdefs.h>
#ifndef lint
-__RCSID("$NetBSD: swapctl.c,v 1.22 2003/06/23 11:53:44 agc Exp $");
+__RCSID("$NetBSD: swapctl.c,v 1.23 2003/10/21 02:32:54 fvdl Exp $");
#endif
@@ -401,7 +401,7 @@
const char *path;
{
- if (swapctl(SWAP_DUMPDEV, path, NULL) == -1)
+ if (swapctl(SWAP_DUMPDEV, path, 0) == -1)
warn("could not set dump device to %s", path);
else
printf("%s: setting dump device to %s\n", getprogname(), path);
@@ -413,7 +413,7 @@
dev_t dev;
char *name;
- if (swapctl(SWAP_GETDUMPDEV, &dev, NULL) == -1)
+ if (swapctl(SWAP_GETDUMPDEV, &dev, 0) == -1)
warn("could not get dump device");
else if (dev == NODEV)
printf("no dump device set\n");
Home |
Main Index |
Thread Index |
Old Index