Fixed some gratuitous ANSIisms.
This commit is contained in:
parent
90aef53b2e
commit
29f6fdf205
@ -36,7 +36,7 @@
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* @(#)kern_exit.c 8.7 (Berkeley) 2/12/94
|
||||
* $Id: kern_exit.c,v 1.51 1997/07/17 04:49:27 dyson Exp $
|
||||
* $Id: kern_exit.c,v 1.52 1997/08/21 20:33:38 bde Exp $
|
||||
*/
|
||||
|
||||
#include "opt_ktrace.h"
|
||||
@ -547,7 +547,8 @@ proc_reparent(child, parent)
|
||||
* returns 0 on success.
|
||||
*/
|
||||
int
|
||||
at_exit(exitlist_fn function)
|
||||
at_exit(function)
|
||||
exitlist_fn function;
|
||||
{
|
||||
ele_p ep;
|
||||
|
||||
@ -568,7 +569,8 @@ at_exit(exitlist_fn function)
|
||||
* Logically this can only be 0 or 1.
|
||||
*/
|
||||
int
|
||||
rm_at_exit(exitlist_fn function)
|
||||
rm_at_exit(function)
|
||||
exitlist_fn function;
|
||||
{
|
||||
ele_p *epp, ep;
|
||||
int count;
|
||||
@ -588,5 +590,3 @@ rm_at_exit(exitlist_fn function)
|
||||
}
|
||||
return (count);
|
||||
}
|
||||
|
||||
|
||||
|
@ -36,7 +36,7 @@
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* @(#)kern_fork.c 8.6 (Berkeley) 4/8/94
|
||||
* $Id: kern_fork.c,v 1.45 1997/07/06 02:40:41 dyson Exp $
|
||||
* $Id: kern_fork.c,v 1.46 1997/08/22 15:10:00 peter Exp $
|
||||
*/
|
||||
|
||||
#include "opt_ktrace.h"
|
||||
@ -457,7 +457,8 @@ fork1(p1, flags, retval)
|
||||
* Returns 0 on success or a standard error number.
|
||||
*/
|
||||
int
|
||||
at_fork(forklist_fn function)
|
||||
at_fork(function)
|
||||
forklist_fn function;
|
||||
{
|
||||
fle_p ep;
|
||||
|
||||
@ -479,7 +480,8 @@ at_fork(forklist_fn function)
|
||||
* Theoretically this value can only be 0 or 1.
|
||||
*/
|
||||
int
|
||||
rm_at_fork(forklist_fn function)
|
||||
rm_at_fork(function)
|
||||
forklist_fn function;
|
||||
{
|
||||
fle_p *epp, ep;
|
||||
int count;
|
||||
@ -499,5 +501,3 @@ rm_at_fork(forklist_fn function)
|
||||
}
|
||||
return (count);
|
||||
}
|
||||
|
||||
|
||||
|
@ -16,7 +16,7 @@
|
||||
* 4. Modifications may be freely made to this file if the above conditions
|
||||
* are met.
|
||||
*
|
||||
* $Id: kern_physio.c,v 1.19 1997/02/22 09:39:08 peter Exp $
|
||||
* $Id: kern_physio.c,v 1.20 1997/08/09 10:13:17 dyson Exp $
|
||||
*/
|
||||
|
||||
#include <sys/param.h>
|
||||
@ -166,7 +166,8 @@ physio(strategy, bp, dev, rw, minp, uio)
|
||||
}
|
||||
|
||||
u_int
|
||||
minphys(struct buf *bp)
|
||||
minphys(bp)
|
||||
struct buf *bp;
|
||||
{
|
||||
u_int maxphys = MAXPHYS;
|
||||
|
||||
@ -181,14 +182,20 @@ minphys(struct buf *bp)
|
||||
}
|
||||
|
||||
int
|
||||
rawread(dev_t dev, struct uio *uio, int ioflag)
|
||||
rawread(dev, uio, ioflag)
|
||||
dev_t dev;
|
||||
struct uio *uio;
|
||||
int ioflag;
|
||||
{
|
||||
return (physio(cdevsw[major(dev)]->d_strategy, (struct buf *)NULL,
|
||||
dev, 1, minphys, uio));
|
||||
}
|
||||
|
||||
int
|
||||
rawwrite(dev_t dev, struct uio *uio, int ioflag)
|
||||
rawwrite(dev, uio, ioflag)
|
||||
dev_t dev;
|
||||
struct uio *uio;
|
||||
int ioflag;
|
||||
{
|
||||
return (physio(cdevsw[major(dev)]->d_strategy, (struct buf *)NULL,
|
||||
dev, 0, minphys, uio));
|
||||
|
Loading…
Reference in New Issue
Block a user