summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Schwinge <tschwinge@gnu.org>2007-04-30 20:45:01 +0000
committerThomas Schwinge <tschwinge@gnu.org>2009-06-18 00:27:09 +0200
commit087a14482b78a9a462af12932681054852572981 (patch)
treecc05ccce507d6968e137760dc4fb37a4c7c6d7d5
parentbc85b8639e6a4f3133d8bf10161a5947dfb5b29d (diff)
2007-04-30 Thomas Schwinge <tschwinge@gnu.org>
We're not in the eighties anymore. List arguments in function prototypes and definitions for a lot of symbols. Also drop some unused prototypes. I refrain from listing every changed symbol. * include/mach/mach_traps.h: Do as described. * device/dev_hdr.h: Include <ipc/ipc_types.h>. * kern/syscall_subr.h: Include <kern/kern_types.h>.
-rw-r--r--ChangeLog2
-rw-r--r--device/dev_hdr.h1
-rw-r--r--include/mach/mach_traps.h2
-rw-r--r--kern/syscall_subr.h2
4 files changed, 6 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index a8d8a50..ed4529d 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -74,6 +74,7 @@
* kern/zalloc.c: Likewise.
* kern/zalloc.h: Likewise.
* ipc/ipc_port.h: Don't include <ipc/ipc_space.h>.
+ * device/dev_hdr.h: Include <ipc/ipc_types.h>.
* device/net_io.h: Include <device/if_hdr.h> and <device/io_req.h>.
* ipc/ipc_entry.h: Include <mach/mach_types.h> and <ipc/ipc_types.h>.
* ipc/ipc_kmsg.h: Include <ipc/ipc_object.h>, <ipc/ipc_types.h> and
@@ -85,6 +86,7 @@
* ipc/ipc_space.h: Include <mach/mach_types.h> and <ipc/ipc_types.h>.
* kern/ipc_tt.h: Include <mach/mach_types.h>.
* kern/sched.h: Include <kern/kern_types.h>.
+ * kern/syscall_subr.h: Include <kern/kern_types.h>.
* ipc/ipc_hash.c (ipc_hash_index_t): Move type definition...
* ipc/ipc_hash.h: ... into here.
diff --git a/device/dev_hdr.h b/device/dev_hdr.h
index 7384766..d5b8770 100644
--- a/device/dev_hdr.h
+++ b/device/dev_hdr.h
@@ -56,6 +56,7 @@
#ifndef _DEVICE_DEV_HDR_H_
#define _DEVICE_DEV_HDR_H_
+#include <ipc/ipc_types.h>
#include <mach/port.h>
#include <kern/lock.h>
#include <kern/queue.h>
diff --git a/include/mach/mach_traps.h b/include/mach/mach_traps.h
index d18385d..e6ea3a0 100644
--- a/include/mach/mach_traps.h
+++ b/include/mach/mach_traps.h
@@ -59,7 +59,7 @@ mach_port_t mach_task_self
()
{ return MACH_PORT_NULL; }
#else /* LINTLIBRARY */
- (self);
+ (void);
#endif /* LINTLIBRARY */
mach_port_t mach_host_self
diff --git a/kern/syscall_subr.h b/kern/syscall_subr.h
index 4ac9489..2d2da14 100644
--- a/kern/syscall_subr.h
+++ b/kern/syscall_subr.h
@@ -24,6 +24,8 @@
* the rights to redistribute these changes.
*/
+#include <kern/kern_types.h>
+
#ifndef _KERN_SYSCALL_SUBR_H_
#define _KERN_SYSCALL_SUBR_H_