summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: dad8644)
raw | patch | inline | side by side (parent: dad8644)
author | Max Kellermann <max@duempel.org> | |
Tue, 29 Sep 2009 20:24:43 +0000 (22:24 +0200) | ||
committer | Max Kellermann <max@duempel.org> | |
Tue, 29 Sep 2009 20:24:43 +0000 (22:24 +0200) |
There is no useful return value.
src/mpdclient.c | patch | blob | history | |
src/mpdclient.h | patch | blob | history |
diff --git a/src/mpdclient.c b/src/mpdclient.c
index cbc6a91fb0cc77d991aafd3858a4d329b1404588..58094a94741852fcfa1f3e7f0ee63b8da9f96004 100644 (file)
--- a/src/mpdclient.c
+++ b/src/mpdclient.c
g_free(c);
}
-gint
+void
mpdclient_disconnect(struct mpdclient *c)
{
if (c->connection)
if (c->song)
c->song = NULL;
-
- return 0;
}
gint
diff --git a/src/mpdclient.h b/src/mpdclient.h
index e2b81c8212b9cb7d8789893b8003fd16320862ef..d7fd555e808f78237f00cc969fb335b2242a6096 100644 (file)
--- a/src/mpdclient.h
+++ b/src/mpdclient.h
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);