diff options
author | pankunull <panku_null@proton.me> | 2025-09-06 14:37:47 +0200 |
---|---|---|
committer | pankunull <panku_null@proton.me> | 2025-09-06 14:37:47 +0200 |
commit | 682c8dea1c698769aebc41eae633669eef29986d (patch) | |
tree | 6f06cd6655f9ba316494fd64cd4598f7c50a7564 /src | |
parent | aa18195724c22897abd0ab50ea0020b7ed91e9b9 (diff) |
Diffstat (limited to 'src')
-rw-r--r-- | src/iptool.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/iptool.c b/src/iptool.c index cf2f190..c31161e 100644 --- a/src/iptool.c +++ b/src/iptool.c @@ -15,6 +15,8 @@ #include <stdio.h> #include <stdlib.h> +#define PROGRAM_NAME "iptool" + static uint32_t ip_to_u32(const char *ip_str) { int o1, o2, o3, o4; @@ -91,7 +93,7 @@ int main(int argc, char *argv[]) uint32_t total, usable; if (argc < 3) { - fprintf(stderr, "Usage: %s <ip> <prefix>\n", argv[0]); + fprintf(stderr, "Usage: %s <ip> <prefix>\n", PROGRAM_NAME); return 1; } |