X-Git-Url: http://git.code-monkey.de/?a=blobdiff_plain;f=src%2Fmain.c;h=5139291e9ceda08029ba886f03dfd2eb17f1dca0;hb=fd7391c60349ab3c0b4d3c8b626c5a32098807e0;hp=8aa6c8d4ce37fd1bbde854fa7f2cd9b4d73b9e2a;hpb=0d0a9ec38247be23ea741dd0d510e3980919af54;p=umurmur.git diff --git a/src/main.c b/src/main.c index 8aa6c8d..5139291 100644 --- a/src/main.c +++ b/src/main.c @@ -45,8 +45,7 @@ #include "log.h" #include "client.h" #include "conf.h" - -#define UMURMUR_VERSION "0.1.3" +#include "version.h" void lockfile(const char *pidfile) { @@ -57,7 +56,7 @@ void lockfile(const char *pidfile) if (lfp < 0) Log_fatal("Cannot open PID-file %s for writing", pidfile); - sprintf(str,"%d\n",getpid()); + sprintf(str,"%d\n", getpid()); write(lfp, str, strlen(str)); /* record pid to lockfile */ Log_info("PID-file: %s", pidfile); } @@ -119,7 +118,7 @@ void setscheduler() void printhelp() { - printf("uMurmur version %s. Mumble protocol %d\n", UMURMUR_VERSION, MESSAGE_STREAM_VERSION); + printf("uMurmur version %s. Mumble protocol %d.%d.%d\n", UMURMUR_VERSION, PROTVER_MAJOR, PROTVER_MINOR, PROTVER_PATCH); printf("Usage: umurmurd [-d] [-p ] [-c ] [-h]\n"); printf(" -d - Do not deamonize\n"); printf(" -p - Write PID to this file\n");