summaryrefslogtreecommitdiffstats
path: root/sys/kern/kern_shutdown.c
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>1997-11-06 19:29:57 +0000
committerphk <phk@FreeBSD.org>1997-11-06 19:29:57 +0000
commit4c8218a5c7d132b8ae0bd2a5a677455d69fabaab (patch)
tree70e3bdde81d385220c0b0de7410976c4e83e5bbd /sys/kern/kern_shutdown.c
parent363a7ddf8560aa6b11580adeb58853d719217b26 (diff)
downloadFreeBSD-src-4c8218a5c7d132b8ae0bd2a5a677455d69fabaab.zip
FreeBSD-src-4c8218a5c7d132b8ae0bd2a5a677455d69fabaab.tar.gz
Move the "retval" (3rd) parameter from all syscall functions and put
it in struct proc instead. This fixes a boatload of compiler warning, and removes a lot of cruft from the sources. I have not removed the /*ARGSUSED*/, they will require some looking at. libkvm, ps and other userland struct proc frobbing programs will need recompiled.
Diffstat (limited to 'sys/kern/kern_shutdown.c')
-rw-r--r--sys/kern/kern_shutdown.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/sys/kern/kern_shutdown.c b/sys/kern/kern_shutdown.c
index b3021aa..145dd2a 100644
--- a/sys/kern/kern_shutdown.c
+++ b/sys/kern/kern_shutdown.c
@@ -36,7 +36,7 @@
* SUCH DAMAGE.
*
* @(#)kern_shutdown.c 8.3 (Berkeley) 1/21/94
- * $Id: kern_shutdown.c,v 1.23 1997/09/02 20:05:41 bde Exp $
+ * $Id: kern_shutdown.c,v 1.24 1997/09/05 08:54:55 peter Exp $
*/
#include "opt_ddb.h"
@@ -132,10 +132,9 @@ struct reboot_args {
* The system call that results in a reboot
*/
int
-reboot(p, uap, retval)
+reboot(p, uap)
struct proc *p;
struct reboot_args *uap;
- int *retval;
{
int error;
@@ -215,7 +214,7 @@ boot(howto)
waittime = 0;
printf("\nsyncing disks... ");
- sync(&proc0, NULL, NULL);
+ sync(&proc0, NULL);
for (iter = 0; iter < 20; iter++) {
nbusy = 0;
OpenPOWER on IntegriCloud