#include "mixer.h"
#include "eventlog.h"
#include "printf.h"
+#include "version.h"
static ev_source *ev;
exit(0);
}
-/* display version number and terminate */
-static void version(void) {
- xprintf("%s", disorder_version_string);
- xfclose(stdout);
- exit(0);
-}
-
/* SIGHUP callback */
static int handle_sighup(ev_source attribute((unused)) *ev_,
int attribute((unused)) sig,
while((n = getopt_long(argc, argv, "hVc:dfP:Ns", options, 0)) >= 0) {
switch(n) {
case 'h': help();
- case 'V': version();
+ case 'V': version("disorderd");
case 'c': configfile = optarg; break;
case 'd': debugging = 1; break;
case 'f': background = 0; break;