diff options
| author | Egor Tensin <Egor.Tensin@gmail.com> | 2023-04-29 22:14:41 +0200 |
|---|---|---|
| committer | Egor Tensin <Egor.Tensin@gmail.com> | 2023-04-29 22:16:42 +0200 |
| commit | b58e8bfe04f4f8bcbb18dd6cb7c01f4d44b1f9ec (patch) | |
| tree | 4c7afa46057e73d111e3ef9004a95205f66b0179 /src/client_main.c | |
| parent | dedupe command line routines (diff) | |
| download | cimple-b58e8bfe04f4f8bcbb18dd6cb7c01f4d44b1f9ec.tar.gz cimple-b58e8bfe04f4f8bcbb18dd6cb7c01f4d44b1f9ec.zip | |
cmd_line: read executable name from /proc/self/exe
Diffstat (limited to 'src/client_main.c')
| -rw-r--r-- | src/client_main.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/client_main.c b/src/client_main.c index 4574e44..a895ccf 100644 --- a/src/client_main.c +++ b/src/client_main.c @@ -39,7 +39,7 @@ static int parse_settings(struct settings *settings, int argc, char *argv[]) while ((opt = getopt_long(argc, argv, "hVH:p:", long_options, &longind)) != -1) { switch (opt) { case 'h': - exit_with_usage(0, argv[0]); + exit_with_usage(0); break; case 'V': exit_with_version(); @@ -51,7 +51,7 @@ static int parse_settings(struct settings *settings, int argc, char *argv[]) settings->port = optarg; break; default: - exit_with_usage(1, argv[0]); + exit_with_usage(1); break; } } |
