X-Git-Url: https://git.draconx.ca/gitweb/rarpd-dx.git/blobdiff_plain/75c08e079aaf8bc8aed01b23ea2b50766ff3251b..41d88c3c624118676add4b16602608c194d91089:/src/rarpd.c diff --git a/src/rarpd.c b/src/rarpd.c index 21cf99a..2943942 100644 --- a/src/rarpd.c +++ b/src/rarpd.c @@ -7,6 +7,8 @@ * 2 of the License, or (at your option) any later version. * * Authors: Alexey Kuznetsov, + * + * Extricated from iputils by Nick Bowler (2023-07). */ #include @@ -94,6 +96,14 @@ void usage(void) exit(1); } +static void print_version(void) +{ + printf("rarpd (%s) %s\n", PACKAGE, PACKAGE_VERSION); + puts("License GPLv2+: GNU GPL version 2 or any later version"); + puts("This is free software: you are free to change and redistribute it."); + puts("There is NO WARRANTY, to the extent permitted by law."); +} + void load_db(void) { } @@ -608,7 +618,7 @@ int main(int argc, char **argv) tftp_dir = optarg; break; case 'V': - printf(IPUTILS_VERSION("rarpd")); + print_version(); return 0; default: usage();