diff options
author | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2018-03-05 01:04:11 +0100 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2018-03-05 02:04:13 +0100 |
commit | 2ed669b5b1da77e80fff6dc2f72f11e266479a8c (patch) | |
tree | 511a122e0935121c3025fc62dc0de377b9644c6c /sutils | |
parent | 4ddc6192b9ba2b0df88e17378cd0e3f67d3b04a4 (diff) | |
download | hurd-2ed669b5b1da77e80fff6dc2f72f11e266479a8c.tar.gz hurd-2ed669b5b1da77e80fff6dc2f72f11e266479a8c.tar.bz2 hurd-2ed669b5b1da77e80fff6dc2f72f11e266479a8c.zip |
Fix warnings
* libdiskfs/boot-start.c (diskfs_start_bootstrap): Fix printf format.
* libfshelp/delegate.c: Include <alloca.h> and <stdlib.h>.
* libfshelp/start-translator-long.c: Include <stdlib.h>.
* libshouldbeinlibc/ugids-verify-auth.c (server_verify_make_auth): Fix
prototypes for password_check_group and password_check_user.
* libstore/argp.c: Include <stdlib.h>.
* libstore/task.c: Include <stdlib.h>.
* exec/exec.c: Include <mach/vm_param.h>.
* libbpf/bpf_impl.c: Include <stdlib.h>.
* proc/info.c (S_proc_getloginpids): Remove local variables leader_task
and leader_sub.
* proc/main.c (main): Remove local variable original_argv.
* boot/boot.c (task_died, S_mach_notify_new_task): Fix printf format.
* exec/elfcore.c: Include <alloca.h> and <mach/vm_param.h>.
* trans/crash.c: Include <hurd/msg.h>.
* trans/random.c: Include <signal.h>.
* utils/login.c: Include <signal.h>.
* utils/id.c: Include <hurd/msg.h>.
* utils/devprobe.c: Include <stdlib.h>.
* utils/addauth.c: Include <hurd/msg.h>.
* utils/frobauth-mod.c: Include <hurd/msg.h>.
* utils/storeread.c: Include <stdlib.h>.
* utils/msgport.c: Include <hurd/msg.h>.
* sutils/clookup.c (file_name_lookup_carefully): Fix lookup function
prototype, make head and tail const.
* utils/rpcscan.c: Include <stdlib.h>.
* sutils/bless.c: Include <stdlib.h>.
* fstests/fstests.c: Include <stdlib.h>.
* startup/startup.c (argz_task_insert_right): Fix printf format.
* init/init.c: Include <stdlib.h>.
Diffstat (limited to 'sutils')
-rw-r--r-- | sutils/bless.c | 1 | ||||
-rw-r--r-- | sutils/clookup.c | 4 |
2 files changed, 3 insertions, 2 deletions
diff --git a/sutils/bless.c b/sutils/bless.c index 4b272adc..cefdf7a8 100644 --- a/sutils/bless.c +++ b/sutils/bless.c @@ -20,6 +20,7 @@ #include <argp.h> #include <assert-backtrace.h> #include <error.h> +#include <stdlib.h> #include <hurd.h> #include <mach.h> #include <version.h> diff --git a/sutils/clookup.c b/sutils/clookup.c index 0232b634..97a04b51 100644 --- a/sutils/clookup.c +++ b/sutils/clookup.c @@ -51,12 +51,12 @@ file_name_lookup_carefully (const char *name, int flags, mode_t mode) sure the result node doesn't have a passive translator with no active translator started (but we make an exception for symlinks) -- if it does, we just return ENXIO. */ - error_t lookup (file_t dir, char *name, int flags, mode_t mode, + error_t lookup (file_t dir, const char *name, int flags, mode_t mode, retry_type *retry, string_t retry_name, mach_port_t *node) { error_t err; - char *head, *tail; + const char *head, *tail; char *slash = index (name, '/'); if (slash) |