summaryrefslogtreecommitdiff
path: root/device
diff options
context:
space:
mode:
Diffstat (limited to 'device')
-rw-r--r--device/cons.c6
-rw-r--r--device/dev_lookup.c2
-rw-r--r--device/dev_name.c6
-rw-r--r--device/device_init.c2
-rw-r--r--device/ds_routines.c6
-rw-r--r--device/net_io.c8
6 files changed, 15 insertions, 15 deletions
diff --git a/device/cons.c b/device/cons.c
index 285fb99..b04621a 100644
--- a/device/cons.c
+++ b/device/cons.c
@@ -58,7 +58,7 @@ static boolean_t consbufused = FALSE;
#endif /* CONSBUFSIZE > 0 */
void
-cninit()
+cninit(void)
{
struct consdev *cp;
dev_ops_t cn_ops;
@@ -120,7 +120,7 @@ cninit()
int
-cngetc()
+cngetc(void)
{
if (cn_tab)
return ((*cn_tab->cn_getc)(cn_tab->cn_dev, 1));
@@ -130,7 +130,7 @@ cngetc()
}
int
-cnmaygetc()
+cnmaygetc(void)
{
if (cn_tab)
return((*cn_tab->cn_getc)(cn_tab->cn_dev, 0));
diff --git a/device/dev_lookup.c b/device/dev_lookup.c
index 4037386..255102c 100644
--- a/device/dev_lookup.c
+++ b/device/dev_lookup.c
@@ -362,7 +362,7 @@ dev_map(routine, port)
* Initialization
*/
void
-dev_lookup_init()
+dev_lookup_init(void)
{
int i;
diff --git a/device/dev_name.c b/device/dev_name.c
index de9e360..930930b 100644
--- a/device/dev_name.c
+++ b/device/dev_name.c
@@ -39,18 +39,18 @@
/*
* Routines placed in empty entries in the device tables
*/
-int nulldev()
+int nulldev(void)
{
return (D_SUCCESS);
}
-int nodev()
+int nodev(void)
{
return (D_INVALID_OPERATION);
}
vm_offset_t
-nomap()
+nomap(void)
{
return (D_INVALID_OPERATION);
}
diff --git a/device/device_init.c b/device/device_init.c
index b2c8b88..794186e 100644
--- a/device/device_init.c
+++ b/device/device_init.c
@@ -46,7 +46,7 @@
ipc_port_t master_device_port;
void
-device_service_create()
+device_service_create(void)
{
master_device_port = ipc_port_alloc_kernel();
if (master_device_port == IP_NULL)
diff --git a/device/ds_routines.c b/device/ds_routines.c
index d62be2b..bc22495 100644
--- a/device/ds_routines.c
+++ b/device/ds_routines.c
@@ -1479,7 +1479,7 @@ void iodone(ior)
splx(s);
}
-void io_done_thread_continue()
+void io_done_thread_continue(void)
{
for (;;) {
spl_t s;
@@ -1514,7 +1514,7 @@ void io_done_thread_continue()
}
}
-void io_done_thread()
+void io_done_thread(void)
{
/*
* Set thread privileges and highest priority.
@@ -1531,7 +1531,7 @@ void io_done_thread()
static void mach_device_trap_init(void); /* forward */
-void mach_device_init()
+void mach_device_init(void)
{
vm_offset_t device_io_min, device_io_max;
diff --git a/device/net_io.c b/device/net_io.c
index b3ec292..4c03f8c 100644
--- a/device/net_io.c
+++ b/device/net_io.c
@@ -524,7 +524,7 @@ boolean_t net_deliver(nonblocking)
* net_kmsg_get will do a wakeup.
*/
-void net_ast()
+void net_ast(void)
{
spl_t s;
@@ -553,7 +553,7 @@ void net_ast()
(void) splx(s);
}
-void net_thread_continue()
+void net_thread_continue(void)
{
for (;;) {
spl_t s;
@@ -579,7 +579,7 @@ void net_thread_continue()
}
}
-void net_thread()
+void net_thread(void)
{
spl_t s;
@@ -1492,7 +1492,7 @@ net_write(ifp, start, ior)
* Initialize the whole package.
*/
void
-net_io_init()
+net_io_init(void)
{
vm_size_t size;