chiark
/
gitweb
/
~mdw
/
disorder
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Suppress IO buffering when running tests
[disorder]
/
clients
/
disorderfm.c
diff --git
a/clients/disorderfm.c
b/clients/disorderfm.c
index d8dffb62c959aba1522523b86596acc650c32304..a55cc447ef47d0e43a72696322cb50c4ab903a9a 100644
(file)
--- a/
clients/disorderfm.c
+++ b/
clients/disorderfm.c
@@
-38,6
+38,7
@@
#include "charset.h"
#include "defs.h"
#include "mem.h"
#include "charset.h"
#include "defs.h"
#include "mem.h"
+#include "version.h"
/* Arguments etc ----------------------------------------------------------- */
/* Arguments etc ----------------------------------------------------------- */
@@
-127,13
+128,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);
-}
-
/* Utilities --------------------------------------------------------------- */
/* Copy FROM to TO. Has the same signature as link/symlink. */
/* Utilities --------------------------------------------------------------- */
/* Copy FROM to TO. Has the same signature as link/symlink. */
@@
-356,7
+350,7
@@
int main(int argc, char **argv) {
while((n = getopt_long(argc, argv, "hVdf:t:i:e:ET:u:wlscn", options, 0)) >= 0) {
switch(n) {
case 'h': help();
while((n = getopt_long(argc, argv, "hVdf:t:i:e:ET:u:wlscn", options, 0)) >= 0) {
switch(n) {
case 'h': help();
- case 'V': version();
+ case 'V': version(
"disorderfm"
);
case 'd': debugging = 1; break;
case 'f': fromencoding = optarg; break;
case 't': toencoding = optarg; break;
case 'd': debugging = 1; break;
case 'f': fromencoding = optarg; break;
case 't': toencoding = optarg; break;