/*
* This file is part of DisOrder.
- * Copyright (C) 2004, 2005, 2006, 2007 Richard Kettlewell
+ * Copyright (C) 2004-2008 Richard Kettlewell
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
#include "defs.h"
#include "authorize.h"
#include "vector.h"
+#include "version.h"
static disorder_client *client;
exit(0);
}
-/* display version number and terminate */
-static void version(void) {
- xprintf("%s", disorder_version_string);
- xfclose(stdout);
- exit(0);
-}
-
static disorder_client *getclient(void) {
if(!client) {
if(!(client = disorder_new(1))) exit(EXIT_FAILURE);
switch(n) {
case 'h': help();
case 'H': help_commands();
- case 'V': version();
+ case 'V': version("disorder");
case 'c': configfile = optarg; break;
case 'd': debugging = 1; break;
case 'l': local = 1; break;