chiark
/
gitweb
/
~mdw
/
disorder
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Further ALSA underrun fiddling.
[disorder]
/
clients
/
disorder.c
diff --git
a/clients/disorder.c
b/clients/disorder.c
index 15bd1075f20bbe9d7b8c736b32927ae888804e2d..caeac1821c84356988e6505ae3dae1a5f34dba09 100644
(file)
--- a/
clients/disorder.c
+++ b/
clients/disorder.c
@@
-53,6
+53,7
@@
#include "defs.h"
#include "authorize.h"
#include "vector.h"
#include "defs.h"
#include "authorize.h"
#include "vector.h"
+#include "version.h"
static disorder_client *client;
static disorder_client *client;
@@
-84,13
+85,6
@@
static void help(void) {
exit(0);
}
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);
static disorder_client *getclient(void) {
if(!client) {
if(!(client = disorder_new(1))) exit(EXIT_FAILURE);
@@
-622,7
+616,7
@@
int main(int argc, char **argv) {
switch(n) {
case 'h': help();
case 'H': help_commands();
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;
case 'c': configfile = optarg; break;
case 'd': debugging = 1; break;
case 'l': local = 1; break;