don't let args default, return values, add protos
This commit is contained in:
parent
765d6cba46
commit
cba4b405e4
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: cons.c,v 1.23 1994/12/14 19:09:13 mycroft Exp $ */
|
||||
/* $NetBSD: cons.c,v 1.24 1995/03/24 15:29:46 cgd Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1988 University of Utah.
|
||||
|
@ -142,6 +142,7 @@ int
|
|||
cnread(dev, uio, flag)
|
||||
dev_t dev;
|
||||
struct uio *uio;
|
||||
int flag;
|
||||
{
|
||||
|
||||
/*
|
||||
|
@ -164,6 +165,7 @@ int
|
|||
cnwrite(dev, uio, flag)
|
||||
dev_t dev;
|
||||
struct uio *uio;
|
||||
int flag;
|
||||
{
|
||||
|
||||
/*
|
||||
|
@ -253,12 +255,13 @@ cnputc(c)
|
|||
{
|
||||
|
||||
if (cn_tab == NULL)
|
||||
return;
|
||||
return 0; /* XXX should be void */
|
||||
if (c) {
|
||||
(*cn_tab->cn_putc)(cn_tab->cn_dev, c);
|
||||
if (c == '\n')
|
||||
(*cn_tab->cn_putc)(cn_tab->cn_dev, '\r');
|
||||
}
|
||||
return 0; /* XXX should be void */
|
||||
}
|
||||
|
||||
void
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: cons.h,v 1.7 1994/10/26 17:56:56 mycroft Exp $ */
|
||||
/* $NetBSD: cons.h,v 1.8 1995/03/24 15:29:49 cgd Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1988 University of Utah.
|
||||
|
@ -64,4 +64,14 @@ struct consdev {
|
|||
#ifdef KERNEL
|
||||
extern struct consdev constab[];
|
||||
extern struct consdev *cn_tab;
|
||||
|
||||
void cninit __P((void));
|
||||
int cnopen __P((dev_t, int, int, struct proc *));
|
||||
int cnclose __P((dev_t, int, int, struct proc *));
|
||||
int cnread __P((dev_t, struct uio *, int));
|
||||
int cnwrite __P((dev_t, struct uio *, int));
|
||||
int cnioctl __P((dev_t, u_long, caddr_t, int, struct proc *));
|
||||
int cnselect __P((dev_t, int, struct proc *));
|
||||
int cngetc __P((void));
|
||||
int cnputc __P((int));
|
||||
#endif
|
||||
|
|
Loading…
Reference in New Issue