From f4bbd377c625c844e3b64dae90d55f30bff2147f Mon Sep 17 00:00:00 2001 From: Aymeric Wibo Date: Wed, 4 Sep 2024 20:04:20 +0200 Subject: [PATCH] main: Forgot to define `init_name` --- main.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/main.c b/main.c index 67d15f7..f1fcc62 100644 --- a/main.c +++ b/main.c @@ -11,10 +11,12 @@ #include #include +static char const* init_name = "flamingo"; + static void usage(void) { #if defined(__FreeBSD__) char const* const progname = getprogname(); -#elif defined(__Linux__) +#elif defined(__linux__) char progname[16] = init_name; if (prctl(PR_GET_NAME, progname, NULL, NULL, NULL) < 0) { @@ -35,6 +37,8 @@ static int call_cb(flamingo_t* flamingo, char* name, void* data) { } int main(int argc, char* argv[]) { + init_name = *argv; + // parse arguments if (argc != 2) {