aboutsummaryrefslogtreecommitdiffstats
path: root/src/libmpdclient.c
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2008-09-15 12:09:29 +0200
committerMax Kellermann <max@duempel.org>2008-09-15 12:09:29 +0200
commit1cd28efa96dbc3d49a43d9b12c5b65d493baf949 (patch)
tree067c067ebdae3b8f7b00283413fe6a3271ab18ca /src/libmpdclient.c
parent85fb21cc2bb75cd207d770c6ee7567ddb8e09fd4 (diff)
downloadmpd-1cd28efa96dbc3d49a43d9b12c5b65d493baf949.tar.gz
mpd-1cd28efa96dbc3d49a43d9b12c5b65d493baf949.tar.xz
mpd-1cd28efa96dbc3d49a43d9b12c5b65d493baf949.zip
remove unused static functions
Also remove some commented code and unused function parameters.
Diffstat (limited to 'src/libmpdclient.c')
-rw-r--r--src/libmpdclient.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/libmpdclient.c b/src/libmpdclient.c
index 27bd9ad52..65c2e447e 100644
--- a/src/libmpdclient.c
+++ b/src/libmpdclient.c
@@ -295,7 +295,7 @@ void mpd_setConnectionTimeout(mpd_Connection * connection, float timeout) {
}
static int mpd_parseWelcome(mpd_Connection * connection, const char * host, int port,
- char * rt, char * output) {
+ char * output) {
char * tmp;
char * test;
int i;
@@ -398,7 +398,8 @@ mpd_Connection * mpd_newConnection(const char * host, int port, float timeout) {
strcpy(connection->buffer,rt+1);
connection->buflen = strlen(connection->buffer);
- if(mpd_parseWelcome(connection,host,port,rt,output) == 0) connection->doneProcessing = 1;
+ if(mpd_parseWelcome(connection,host,port,output) == 0)
+ connection->doneProcessing = 1;
free(output);