summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBenjamin Franzke <benjaminfranzke@googlemail.com>2011-05-27 16:32:06 +0200
committerBenjamin Franzke <benjaminfranzke@googlemail.com>2011-05-27 16:32:06 +0200
commitae4550f462b23ebec3846b0ac1ad01af75116e1f (patch)
treea38910beccc7e2b3ec950c230d359d51d649db88 /src
parent30238cbff3d72df95ff422ed2fcb48f68f2be3cc (diff)
downloadcmumble-ae4550f462b23ebec3846b0ac1ad01af75116e1f.tar.gz
cmumble-ae4550f462b23ebec3846b0ac1ad01af75116e1f.tar.bz2
cmumble-ae4550f462b23ebec3846b0ac1ad01af75116e1f.zip
Use PACKAGE_STRING from config.h rather than hardcoding version number
Diffstat (limited to 'src')
-rw-r--r--src/cmumble.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/cmumble.c b/src/cmumble.c
index 5824807..342c63c 100644
--- a/src/cmumble.c
+++ b/src/cmumble.c
@@ -1,3 +1,5 @@
+#include "../config.h"
+
#include <stdlib.h>
#include <string.h>
#include <stdbool.h>
@@ -574,7 +576,7 @@ int main(int argc, char **argv)
MumbleProto__Version version;
mumble_proto__version__init(&version);
version.version = 0x010203;
- version.release = "cmumble 0.1";
+ version.release = PACKAGE_STRING;
version.os = "Gentoo/Linux";
send_msg(&ctx, &version.base);
}