diff options
author | Sergey Bugaev <bugaevc@gmail.com> | 2023-05-09 00:31:10 +0300 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2023-05-10 02:30:28 +0200 |
commit | 12e2e281a5b3ed1c8594677d150c4f34381248a2 (patch) | |
tree | cc66ffb8171b47e9868a7d02a7d49517b02f43e3 /utils | |
parent | 3295dbbe1cacfa59162c633aadd10db7614a98f4 (diff) | |
download | hurd-12e2e281a5b3ed1c8594677d150c4f34381248a2.tar.gz hurd-12e2e281a5b3ed1c8594677d150c4f34381248a2.tar.bz2 hurd-12e2e281a5b3ed1c8594677d150c4f34381248a2.zip |
utils: Avoid warnings about prototype mismatch
Message-Id: <20230508213136.608575-16-bugaevc@gmail.com>
Diffstat (limited to 'utils')
-rw-r--r-- | utils/parse.c | 5 | ||||
-rw-r--r-- | utils/ps.c | 2 |
2 files changed, 5 insertions, 2 deletions
diff --git a/utils/parse.c b/utils/parse.c index c3d28e5c..719494a4 100644 --- a/utils/parse.c +++ b/utils/parse.c @@ -119,7 +119,10 @@ parse_numlist (char *arg, int (*lookup_fn)(const char *str, struct argp_state *state), const char *type_name, struct argp_state *state) { - error_t default_num_add(void) { return (*add_fn)((*default_fn)(state), state); } + error_t default_num_add(struct argp_state *state) + { + return (*add_fn)((*default_fn)(state), state); + } error_t add_num_str(const char *str, struct argp_state *state) { const char *p; @@ -250,7 +250,7 @@ main(int argc, char *argv[]) } /* Returns the name of the current controlling terminal. */ - const char *current_tty_name(void) + const char *current_tty_name (struct argp_state *state) { error_t err; struct ps_tty *tty; |