diff options
author | Simon Rettberg | 2017-12-22 11:40:43 +0100 |
---|---|---|
committer | Simon Rettberg | 2017-12-22 11:40:43 +0100 |
commit | 24b5a6bdda8f09593dd908c3fc69315ebb3754e1 (patch) | |
tree | 71b72641416040fe15864f8aeb77377b6ba376c7 /ldadp.c | |
parent | Fix compile error (diff) | |
download | ldadp-24b5a6bdda8f09593dd908c3fc69315ebb3754e1.tar.gz ldadp-24b5a6bdda8f09593dd908c3fc69315ebb3754e1.tar.xz ldadp-24b5a6bdda8f09593dd908c3fc69315ebb3754e1.zip |
Add version information and --version
Diffstat (limited to 'ldadp.c')
-rw-r--r-- | ldadp.c | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -12,6 +12,7 @@ #include "helper.h" #include "openssl.h" #include "helper.h" +#include "version.in.h" #include <stdio.h> #include <socket.h> #include <io.h> @@ -29,6 +30,12 @@ static char *certFile = NULL, *keyFile = NULL; int main(int argc, char **argv) { BOOL isdaemon = TRUE; + printf("Starting up ldadp %s\n", LDADP_VERSION); + printf("Commit: %s\n", LDADP_COMMIT); + printf("Commit time: %s\n", LDADP_COMMITTIME); + printf("Build time: %s\n", LDADP_BUILDTIME); + if (argc > 1 && strcmp(argv[1], "--version") == 0) + exit(0); if (argc < 2) { printf("Nö\n"); exit(1); |