diff options
author | Roland McGrath <roland@gnu.org> | 1999-07-11 01:39:03 +0000 |
---|---|---|
committer | Roland McGrath <roland@gnu.org> | 1999-07-11 01:39:03 +0000 |
commit | dafd420fc9ee9c76bdbb015068713700b2a16cc4 (patch) | |
tree | 9afaffb64c3f8b6485b62780c2f6c0511fd15b56 /utils/msgport.c | |
parent | 7bb59f74a2ffedd6bf2037ffe83070841055fc21 (diff) |
1999-07-10 Roland McGrath <roland@baalperazim.frob.com>
* pids.c: Add #include <sys/mman.h> for munmap decl.
* showtrans.c: Likewise.
* login.c: Likewise.
* storeread.c: Likewise.
* msgport.c: Likewise.
Diffstat (limited to 'utils/msgport.c')
-rw-r--r-- | utils/msgport.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/utils/msgport.c b/utils/msgport.c index 5f494e1c..59362d87 100644 --- a/utils/msgport.c +++ b/utils/msgport.c @@ -31,6 +31,7 @@ #include <error.h> #include <version.h> #include "pids.h" +#include <sys/mman.h> /* From libc (not in hurd.h) */ char * @@ -428,7 +429,7 @@ cmd_umask (pid_t pid, mach_port_t msgport, int argc, char *argv[]) umask = strtol(argv[0], 0, 8); err = msg_set_init_int (msgport, task, INIT_UMASK, umask); } - else + else { err = msg_get_init_int (msgport, task, INIT_UMASK, &umask); if (!err) @@ -492,7 +493,7 @@ static const struct argp_option cmd_options[] = command line (probably the first argument for this command). STATE is the argp parser state as used in parse_cmd_opt. */ static error_t -add_cmd (cmd_func_t func, size_t minargs, size_t maxargs, +add_cmd (cmd_func_t func, size_t minargs, size_t maxargs, char *arg, struct argp_state *state) { cmd_t *cmd; |