diff options
author | pankunull <panku_null@proton.me> | 2025-09-06 14:36:49 +0200 |
---|---|---|
committer | pankunull <panku_null@proton.me> | 2025-09-06 14:36:49 +0200 |
commit | aa18195724c22897abd0ab50ea0020b7ed91e9b9 (patch) | |
tree | ecc04623cbf8e209156248dff0ac28359d34db45 | |
parent | d000e66227cf15c97812d19f098c6fd8e2a00835 (diff) |
Renamed source
-rw-r--r-- | src/iptool.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/iptool.c b/src/iptool.c index 105f7a8..cf2f190 100644 --- a/src/iptool.c +++ b/src/iptool.c @@ -1,6 +1,6 @@ // SPDX-License-Identifier: GPL-2.0 /* - * subnet_calc.c - Simple IP subnet calculator + * iptool.c - Simple IP subnet calculator * * Takes an IPv4 address and a prefix length, then calculates: * - IP class @@ -15,8 +15,6 @@ #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; @@ -93,7 +91,7 @@ int main(int argc, char *argv[]) uint32_t total, usable; if (argc < 3) { - fprintf(stderr, "Usage: %s <ip> <prefix>\n", PROGRAM_NAME); + fprintf(stderr, "Usage: %s <ip> <prefix>\n", argv[0]); return 1; } |