From 5089d4a559eb3a0a0f008ad00ba8c5ed8bbc94c6 Mon Sep 17 00:00:00 2001 From: Flavio Cruz Date: Tue, 29 Dec 2015 23:15:01 +0100 Subject: 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. --- utils/w.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'utils/w.c') diff --git a/utils/w.c b/utils/w.c index 37555088..ac5e36f8 100644 --- a/utils/w.c +++ b/utils/w.c @@ -258,7 +258,6 @@ add_utmp_procs (struct proc_stat_list *procs, struct utmp *u) io_t tty_node; error_t err; pid_t pid; - int pos; struct proc_stat *ps; switch (u->ut_type) @@ -300,7 +299,7 @@ add_utmp_procs (struct proc_stat_list *procs, struct utmp *u) } /* The new process will get added at the end, so look for it there. */ - pos = proc_stat_list_num_procs (procs); + (void) proc_stat_list_num_procs (procs); if (pid >= 0) err = proc_stat_list_add_pid (procs, pid, &ps); else -- cgit v1.2.3