diff options
author | Flavio Cruz <flaviocruz@gmail.com> | 2023-05-01 21:10:42 -0400 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2023-05-02 07:54:07 +0200 |
commit | 42e5d73459400e81dd7c22ff4c226ab3ec728348 (patch) | |
tree | 1be175591fe5b95198108b27ef94a94c6e4f91e6 /kern/ipc_mig.c | |
parent | 31dd30a94a682955c3c9e2f42252b4a07687067a (diff) | |
download | gnumach-42e5d73459400e81dd7c22ff4c226ab3ec728348.tar.gz gnumach-42e5d73459400e81dd7c22ff4c226ab3ec728348.tar.bz2 gnumach-42e5d73459400e81dd7c22ff4c226ab3ec728348.zip |
Use mig_support.h prototypes instead of duplicating them.
* include/mach/mig_support.h: Drop the ifndef because this file is only
used internally to compile gnumach. We export mig_support.h from glibc
already.
* kern/ipc_mig.c: len should be vm_size_t.
* kern/ipc_mig.h: Drop duplicate prototypes.
Message-Id: <ZFBjEk07CaQgx9Ru@jupiter.tail36e24.ts.net>
Diffstat (limited to 'kern/ipc_mig.c')
-rw-r--r-- | kern/ipc_mig.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/kern/ipc_mig.c b/kern/ipc_mig.c index cb0b2c83..d6171877 100644 --- a/kern/ipc_mig.c +++ b/kern/ipc_mig.c @@ -27,6 +27,7 @@ #include <mach/boolean.h> #include <mach/port.h> #include <mach/message.h> +#include <mach/mig_support.h> #include <mach/thread_status.h> #include <machine/locore.h> #include <machine/copy_user.h> @@ -285,7 +286,7 @@ mig_put_reply_port( * len - Length of destination buffer. */ vm_size_t -mig_strncpy(char *dest, const char *src, int len) +mig_strncpy(char *dest, const char *src, vm_size_t len) { char *dest_ = dest; int i; |