Bump ndhc version to 1.1.

This commit is contained in:
Nicholas J. Kain 2012-07-23 13:24:15 -04:00
parent 22e5a60671
commit b8c77a45e8
2 changed files with 4 additions and 6 deletions

View File

@ -4,7 +4,7 @@
#include "defines.h" #include "defines.h"
#define PID_FILE_DEFAULT "/var/run/ndhc.pid" #define PID_FILE_DEFAULT "/var/run/ndhc.pid"
#define NDHC_VERSION "1.0" #define NDHC_VERSION "1.1"
#define MAX_BUF 1024 #define MAX_BUF 1024
#endif /* NDHC_DEFINES_H_ */ #endif /* NDHC_DEFINES_H_ */

View File

@ -67,8 +67,6 @@
#include "io.h" #include "io.h"
#include "seccomp-bpf.h" #include "seccomp-bpf.h"
#define VERSION "1.0"
struct client_state_t cs = { struct client_state_t cs = {
.init = 1, .init = 1,
.epollFd = -1, .epollFd = -1,
@ -89,7 +87,7 @@ struct client_config_t client_config = {
static void show_usage(void) static void show_usage(void)
{ {
printf( printf(
"ndhc " VERSION ", dhcp client. Licensed under 2-clause BSD.\n" "ndhc " NDHC_VERSION ", dhcp client. Licensed under 2-clause BSD.\n"
"Copyright (C) 2004-2012 Nicholas J. Kain\n" "Copyright (C) 2004-2012 Nicholas J. Kain\n"
"Usage: ndhc [OPTIONS]\n\n" "Usage: ndhc [OPTIONS]\n\n"
" -c, --clientid=CLIENTID Client identifier\n" " -c, --clientid=CLIENTID Client identifier\n"
@ -392,7 +390,7 @@ int main(int argc, char **argv)
arp_relentless_def = 1; arp_relentless_def = 1;
break; break;
case 'v': case 'v':
printf("ndhc %s, dhcp client.\n", VERSION); printf("ndhc %s, dhcp client.\n", NDHC_VERSION);
printf("Copyright (c) 2004-2012 Nicholas J. Kain\n" printf("Copyright (c) 2004-2012 Nicholas J. Kain\n"
"All rights reserved.\n\n" "All rights reserved.\n\n"
"Redistribution and use in source and binary forms, with or without\n" "Redistribution and use in source and binary forms, with or without\n"
@ -424,7 +422,7 @@ int main(int argc, char **argv)
} }
} }
log_line("ndhc client " VERSION " started."); log_line("ndhc client " NDHC_VERSION " started.");
if (client_config.foreground && !client_config.background_if_no_lease) { if (client_config.foreground && !client_config.background_if_no_lease) {
if (file_exists(pidfile, "w") == -1) { if (file_exists(pidfile, "w") == -1) {