From: Max Kellermann Date: Tue, 29 Sep 2009 20:24:43 +0000 (+0200) Subject: mpdclient: mpdclient_disconnect() returns void X-Git-Tag: release-0.16~295 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=839c91c2016ddde5e7d83bb0fad34f584f10dfe7;p=ncmpc.git mpdclient: mpdclient_disconnect() returns void There is no useful return value. --- diff --git a/src/mpdclient.c b/src/mpdclient.c index cbc6a91..58094a9 100644 --- a/src/mpdclient.c +++ b/src/mpdclient.c @@ -162,7 +162,7 @@ mpdclient_free(struct mpdclient *c) g_free(c); } -gint +void mpdclient_disconnect(struct mpdclient *c) { if (c->connection) @@ -177,8 +177,6 @@ mpdclient_disconnect(struct mpdclient *c) if (c->song) c->song = NULL; - - return 0; } gint diff --git a/src/mpdclient.h b/src/mpdclient.h index e2b81c8..d7fd555 100644 --- a/src/mpdclient.h +++ b/src/mpdclient.h @@ -42,7 +42,10 @@ mpdclient_is_connected(const struct mpdclient *c) gint mpdclient_connect(struct mpdclient *c, const gchar *host, gint port, gfloat timeout_, const gchar *password); -gint mpdclient_disconnect(struct mpdclient *c); + +void +mpdclient_disconnect(struct mpdclient *c); + gint mpdclient_update(struct mpdclient *c);