X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~mdw/git/disorder/blobdiff_plain/eb5f83f45eb2ff415ededbb30187fec8c3e71010..3fbdc96d45fbf2abcc93ed2e8ad206bc540be92b:/server/deadlock.c diff --git a/server/deadlock.c b/server/deadlock.c index 99359b2..6aa130c 100644 --- a/server/deadlock.c +++ b/server/deadlock.c @@ -42,6 +42,7 @@ #include "rights.h" #include "trackdb.h" #include "trackdb-int.h" +#include "version.h" static const struct option options[] = { { "help", no_argument, 0, 'h' }, @@ -71,13 +72,6 @@ static void help(void) { exit(0); } -/* display version number and terminate */ -static void version(void) { - xprintf("%s", disorder_version_string); - xfclose(stdout); - exit(0); -} - int main(int argc, char **argv) { int n, err, aborted, logsyslog = !isatty(2); @@ -86,7 +80,7 @@ int main(int argc, char **argv) { while((n = getopt_long(argc, argv, "hVc:dDSs", options, 0)) >= 0) { switch(n) { case 'h': help(); - case 'V': version(); + case 'V': version("disorder-deadlock"); case 'c': configfile = optarg; break; case 'd': debugging = 1; break; case 'D': debugging = 0; break;