summaryrefslogtreecommitdiff
path: root/llmnrd.c
diff options
context:
space:
mode:
authorTobias Klauser <tklauser@distanz.ch>2015-02-18 14:13:11 +0100
committerTobias Klauser <tklauser@distanz.ch>2015-02-18 14:13:11 +0100
commit083023711b5248c5511185e536679020b6696486 (patch)
tree10b1be43f9e551f136005b321853e03cb684de7c /llmnrd.c
parent2bab52017fb4901e9c642fab585f7169e6d11253 (diff)
llmnrd, llmnr-query: Add git id to version output
Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
Diffstat (limited to 'llmnrd.c')
-rw-r--r--llmnrd.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/llmnrd.c b/llmnrd.c
index 79a237d..ab3a003 100644
--- a/llmnrd.c
+++ b/llmnrd.c
@@ -62,9 +62,10 @@ static void __noreturn usage_and_exit(int status)
static void __noreturn version_and_exit(void)
{
- fprintf(stdout, "llmnrd %s\n"
+ fprintf(stdout, "llmnrd %s (git id %s)\n"
"Copyright (C) 2014-2015 Tobias Klauser <tklauser@distanz.ch>\n"
- "Licensed unter the GNU General Public License, version 2\n", VERSION_STRING);
+ "Licensed unter the GNU General Public License, version 2\n",
+ VERSION_STRING, GIT_VERSION);
exit(EXIT_SUCCESS);
}