summaryrefslogtreecommitdiff
path: root/ipc/ipc_entry.c
diff options
context:
space:
mode:
Diffstat (limited to 'ipc/ipc_entry.c')
-rw-r--r--ipc/ipc_entry.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/ipc/ipc_entry.c b/ipc/ipc_entry.c
index 523f070..85404b6 100644
--- a/ipc/ipc_entry.c
+++ b/ipc/ipc_entry.c
@@ -34,6 +34,8 @@
* Primitive functions to manipulate translation entries.
*/
+#include <string.h>
+
#include <mach/kern_return.h>
#include <mach/port.h>
#include <kern/assert.h>
@@ -635,7 +637,7 @@ ipc_entry_grow_table(space)
*/
if (!it_entries_reallocable(oits))
- (void) memcpy((void *) table, (const void *) otable,
+ memcpy(table, otable,
osize * sizeof(struct ipc_entry));
for (i = 0; i < osize; i++)