aboutsummaryrefslogtreecommitdiff
path: root/sys/kern
diff options
context:
space:
mode:
authorBruce Evans <bde@FreeBSD.org>1995-08-30 00:33:02 +0000
committerBruce Evans <bde@FreeBSD.org>1995-08-30 00:33:02 +0000
commit088f73968c17d27568752b7ecc23e14551297d9a (patch)
treef355716c9b0abf4e3242ebfa58767b4614f675f1 /sys/kern
parent41a93c86d6b90d215c65fc9a74b842eb029153dc (diff)
downloadsrc-088f73968c17d27568752b7ecc23e14551297d9a.tar.gz
src-088f73968c17d27568752b7ecc23e14551297d9a.zip
Fix several sysinit functions that had the wrong type and unnecessarily
external linkage. Remove useless comments saying that SYSINIT() does system initialization. shm.c: Remove nearly useless comment that gave wrong pseudo-prototypes.
Notes
Notes: svn path=/head/; revision=10428
Diffstat (limited to 'sys/kern')
-rw-r--r--sys/kern/sysv_msg.c11
-rw-r--r--sys/kern/sysv_sem.c11
-rw-r--r--sys/kern/sysv_shm.c24
3 files changed, 12 insertions, 34 deletions
diff --git a/sys/kern/sysv_msg.c b/sys/kern/sysv_msg.c
index 3eaa6b520b85..8f66ebe66cfc 100644
--- a/sys/kern/sysv_msg.c
+++ b/sys/kern/sysv_msg.c
@@ -1,4 +1,4 @@
-/* $Id: sysv_msg.c,v 1.5 1995/07/29 11:40:13 bde Exp $ */
+/* $Id: sysv_msg.c,v 1.6 1995/08/28 09:18:46 julian Exp $ */
/*
* Implementation of SVID messages
@@ -26,11 +26,7 @@
#include <sys/msg.h>
#include <sys/malloc.h>
-/*
- * System initialization
- */
-
-extern void msginit(); /* should be static*/
+static void msginit __P((caddr_t));
SYSINIT(sysv_msg, SI_SUB_SYSV_MSG, SI_ORDER_FIRST, msginit, NULL)
#define MSG_DEBUG
@@ -49,7 +45,8 @@ struct msg *msghdrs; /* MSGTQL msg headers */
struct msqid_ds *msqids; /* MSGMNI msqid_ds struct's */
void
-msginit()
+msginit(udata)
+ caddr_t udata;
{
register int i;
diff --git a/sys/kern/sysv_sem.c b/sys/kern/sysv_sem.c
index 6cadbd52f655..d6882518497c 100644
--- a/sys/kern/sysv_sem.c
+++ b/sys/kern/sysv_sem.c
@@ -1,4 +1,4 @@
-/* $Id: sysv_sem.c,v 1.6 1995/07/29 11:40:14 bde Exp $ */
+/* $Id: sysv_sem.c,v 1.7 1995/08/28 09:18:47 julian Exp $ */
/*
* Implementation of SVID semaphores
@@ -15,11 +15,7 @@
#include <sys/sem.h>
#include <sys/malloc.h>
-/*
- * System initialization
- */
-
-extern void seminit(); /* should be static*/
+static void seminit __P((caddr_t));
SYSINIT(sysv_sem, SI_SUB_SYSV_SEM, SI_ORDER_FIRST, seminit, NULL)
static int semctl(), semget(), semop(), semconfig();
@@ -34,7 +30,8 @@ int *semu; /* undo structure pool */
static struct proc *semlock_holder = NULL;
void
-seminit()
+seminit(udata)
+ caddr_t udata;
{
register int i;
diff --git a/sys/kern/sysv_shm.c b/sys/kern/sysv_shm.c
index 3c0fc35f8888..a80d7811a6fb 100644
--- a/sys/kern/sysv_shm.c
+++ b/sys/kern/sysv_shm.c
@@ -1,4 +1,4 @@
-/* $Id: sysv_shm.c,v 1.6 1995/07/29 11:40:15 bde Exp $ */
+/* $Id: sysv_shm.c,v 1.7 1995/08/28 09:18:48 julian Exp $ */
/* $NetBSD: sysv_shm.c,v 1.23 1994/07/04 23:25:12 glass Exp $ */
/*
@@ -48,24 +48,7 @@
#include <vm/vm_map.h>
#include <vm/vm_kern.h>
-/*
- * Provides the following externally accessible functions:
- *
- * shminit(void); initialization
- * shmexit(struct proc *) cleanup
- * shmfork(struct proc *, struct proc *, int) fork handling
- * shmsys(arg1, arg2, arg3, arg4); shm{at,ctl,dt,get}(arg2, arg3, arg4)
- *
- * Structures:
- * shmsegs (an array of 'struct shmid_ds')
- * per proc array of 'struct shmmap_state'
- */
-
-/*
- * System initialization
- */
-
-extern void shminit(); /* should be static*/
+static void shminit __P((caddr_t));
SYSINIT(sysv_shm, SI_SUB_SYSV_SHM, SI_ORDER_FIRST, shminit, NULL)
int oshmctl();
@@ -573,7 +556,8 @@ shmexit(p)
}
void
-shminit()
+shminit(udata)
+ caddr_t udata;
{
int i;
vm_offset_t garbage1, garbage2;