diff options
author | Flavio Cruz <flaviocruz@gmail.com> | 2015-12-29 23:15:01 +0100 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2015-12-29 23:24:59 +0100 |
commit | 5089d4a559eb3a0a0f008ad00ba8c5ed8bbc94c6 (patch) | |
tree | 5b5dd54ee2a2c0b96e59164d84e050160bc17b3b /utils/rpcscan.c | |
parent | fd0f30ca23e685f56578bebd08b666be0287d59e (diff) |
fix compiler warnings in hurd/utils
utils: Fix compiler warnings.
* utils/rpcscan.c (setup_extract_target): Remove name variable.
* utils/rpcscan.c (setup_extract_target): Fix bad initializer.
* utils/rpctrace.c (new_send_wrapper, wrap_all_threads, wrap_new_thread,
wrap_new_task, traced_spawn): Fix format strings.
* utils/rpctrace.c (trace_and_forward): Cast to unsigned int.
* utils/rpctrace.c (trace_and_forward): Use memcmp instead of pointer
dereferencing to compare structures.
* utils/rpctrace.c (wrap_all_threads): Cast to vm_address_t.
* utils/rpctrace.c (main): Fix bad initializer.
* utils/shd.c (run): Initialize save0.
* utils/vminfo.c: Fix format strings.
* utils/vmstat.c: Remove PSEP macro and expand the code.
* utils/w.c (add_utmp_procs): Remove unused pos variable.
Diffstat (limited to 'utils/rpcscan.c')
-rw-r--r-- | utils/rpcscan.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/utils/rpcscan.c b/utils/rpcscan.c index 2270ea8a..3ddf791a 100644 --- a/utils/rpcscan.c +++ b/utils/rpcscan.c @@ -201,7 +201,6 @@ error_t setup_extract_target (void) { error_t err; - char *name = (char *) setup_argument; mach_port_t request; mach_msg_type_name_t requestType; @@ -337,7 +336,7 @@ const struct argp_child children[] = { 0 } }; -const struct argp argp = { options, parse_opt, args_doc, doc, &children }; +const struct argp argp = { options, parse_opt, args_doc, doc, children }; void format_msgid (char *buf, size_t len, mach_msg_id_t id) |