aboutsummaryrefslogtreecommitdiffstats
path: root/src/command.c
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2008-08-26 08:27:16 +0200
committerMax Kellermann <max@duempel.org>2008-08-26 08:27:16 +0200
commit3db333b5a46f8d147043afc4d400d18851d3606d (patch)
tree882c370396bc53b035c14a6bf3032fdcc98b8e0e /src/command.c
parent6df980a996192fc459a0b60b73fa7a33a24a2f49 (diff)
downloadmpd-3db333b5a46f8d147043afc4d400d18851d3606d.tar.gz
mpd-3db333b5a46f8d147043afc4d400d18851d3606d.tar.xz
mpd-3db333b5a46f8d147043afc4d400d18851d3606d.zip
player: no "fd" and no return value
Most player*() functions do not actually use the file descriptor, and always return 0 (success). Eliminate them to get a leaner interface.
Diffstat (limited to 'src/command.c')
-rw-r--r--src/command.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/command.c b/src/command.c
index 342729fd5..04220018e 100644
--- a/src/command.c
+++ b/src/command.c
@@ -292,9 +292,12 @@ static int handlePause(int fd, mpd_unused int *permission,
int pause_flag;
if (check_int(fd, &pause_flag, argv[1], check_boolean, argv[1]) < 0)
return -1;
- return playerSetPause(fd, pause_flag);
+ playerSetPause(pause_flag);
+ return 0;
}
- return playerPause(fd);
+
+ playerPause();
+ return 0;
}
static int commandStatus(mpd_unused int fd, mpd_unused int *permission,