[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 15/41] utils: Avoid warnings about prototype mismatch
From: |
Sergey Bugaev |
Subject: |
[PATCH 15/41] utils: Avoid warnings about prototype mismatch |
Date: |
Tue, 9 May 2023 00:31:10 +0300 |
---
utils/parse.c | 5 ++++-
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;
diff --git a/utils/ps.c b/utils/ps.c
index 6fd4e64e..3c8c3c88 100644
--- a/utils/ps.c
+++ b/utils/ps.c
@@ -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;
--
2.40.1
- [PATCH 20/41] elfcore: Add support for saving x86_64 registers, (continued)
- [PATCH 20/41] elfcore: Add support for saving x86_64 registers, Sergey Bugaev, 2023/05/08
- [PATCH 22/41] sutils: Avoid warnings about prototype mismatch, Sergey Bugaev, 2023/05/08
- [PATCH 35/41] procfs: Port to x86_64, Sergey Bugaev, 2023/05/08
- [PATCH 41/41] Style tweaks, Sergey Bugaev, 2023/05/08
- [PATCH 34/41] ext2fs: Port to x86_64, Sergey Bugaev, 2023/05/08
- [PATCH 33/41] fatfs: Port to x86_64, Sergey Bugaev, 2023/05/08
- [PATCH 21/41] sutils: Port to x86_64, Sergey Bugaev, 2023/05/08
- [PATCH 27/41] boot: Port to x64_64, Sergey Bugaev, 2023/05/08
- [PATCH 37/41] console-client: Port to x86_64, Sergey Bugaev, 2023/05/08
- [PATCH 30/41] startup: Port to x86_64, Sergey Bugaev, 2023/05/08
- [PATCH 15/41] utils: Avoid warnings about prototype mismatch,
Sergey Bugaev <=
- [PATCH 18/41] proc: Fix use-after-realloc, Sergey Bugaev, 2023/05/08
- [PATCH 31/41] mach-defpager: Port to x86_64, Sergey Bugaev, 2023/05/08
- [PATCH 38/41] trans: Port to x86_64, Sergey Bugaev, 2023/05/08
- [PATCH 19/41] exec: Port to x86_64, Sergey Bugaev, 2023/05/08
- [PATCH 25/41] daemons: Port to x86_64, Sergey Bugaev, 2023/05/08
- [PATCH 40/41] Disable Linux-based pfinet on x86_64, Sergey Bugaev, 2023/05/08
- [PATCH 23/41] storeio: Port to x86_64, Sergey Bugaev, 2023/05/08
- [PATCH 24/41] devnode: Port to x86_64, Sergey Bugaev, 2023/05/08
- [PATCH 39/41] Look for mach_i386 in mach/machine/, Sergey Bugaev, 2023/05/08
- [PATCH 36/41] term: Port to x86_64, Sergey Bugaev, 2023/05/08