From 3db333b5a46f8d147043afc4d400d18851d3606d Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Tue, 26 Aug 2008 08:27:16 +0200 Subject: 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. --- src/command.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/command.c') 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, -- cgit v1.2.3