From 8854e46a50a0272578599d2fcd8d1fb363e19c38 Mon Sep 17 00:00:00 2001 From: Ralf Baechle Date: Mon, 23 Jan 2017 11:03:56 +0100 Subject: Add a git suffix to the version number used by all programs. This uses a setlocalversion script derived from the kernel's scripts/setlocalversion. Signed-off-by: Ralf Baechle --- tcpip/rip98d.c | 3 ++- tcpip/ttylinkd.c | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) (limited to 'tcpip') diff --git a/tcpip/rip98d.c b/tcpip/rip98d.c index ca9a7b5..bb85e66 100644 --- a/tcpip/rip98d.c +++ b/tcpip/rip98d.c @@ -2,6 +2,7 @@ #ifdef HAVE_CONFIG_H #include #endif +#include #include #include @@ -296,7 +297,7 @@ int main(int argc, char **argv) } break; case 'v': - printf("rip98d: %s\n", VERSION); + printf("rip98d: %s\n", FULL_VER); return 0; case ':': fprintf(stderr, "rip98d: invalid time interval\n"); diff --git a/tcpip/ttylinkd.c b/tcpip/ttylinkd.c index a0764f4..68c0450 100644 --- a/tcpip/ttylinkd.c +++ b/tcpip/ttylinkd.c @@ -37,6 +37,7 @@ #include #include +#include #include @@ -53,7 +54,7 @@ #include "../pathnames.h" -static char version[] = "ttylink daemon (Version " VERSION ") ready.\n"; +static char version[] = "ttylink daemon (Version " FULL_VER ") ready.\n"; #define SYSOP_USER "root" -- cgit v1.2.3