aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2010-06-30 21:39:34 +0200
committerMax Kellermann <max@duempel.org>2010-06-30 21:39:34 +0200
commit1bffdabe41471b994f43809d3ca18fd54ac8bf66 (patch)
tree460b04dc2ae02f59d7097c5b9ca03643f233551e
parent77e6810c14e3b47f27a385e2fd9e8760710d0a99 (diff)
downloadmpd-1bffdabe41471b994f43809d3ca18fd54ac8bf66.tar.gz
mpd-1bffdabe41471b994f43809d3ca18fd54ac8bf66.tar.xz
mpd-1bffdabe41471b994f43809d3ca18fd54ac8bf66.zip
directory_print: return void
There is no useful return value here.
Diffstat (limited to '')
-rw-r--r--src/directory_print.c8
-rw-r--r--src/directory_print.h2
2 files changed, 3 insertions, 7 deletions
diff --git a/src/directory_print.c b/src/directory_print.c
index e0575e80f..1c9f23d69 100644
--- a/src/directory_print.c
+++ b/src/directory_print.c
@@ -22,7 +22,7 @@
#include "client.h"
#include "song_print.h"
-static int
+static void
dirvec_print(struct client *client, const struct dirvec *dv)
{
size_t i;
@@ -30,15 +30,11 @@ dirvec_print(struct client *client, const struct dirvec *dv)
for (i = 0; i < dv->nr; ++i)
client_printf(client, DIRECTORY_DIR "%s\n",
directory_get_path(dv->base[i]));
-
- return 0;
}
-int
+void
directory_print(struct client *client, const struct directory *directory)
{
dirvec_print(client, &directory->children);
songvec_print(client, &directory->songs);
-
- return 0;
}
diff --git a/src/directory_print.h b/src/directory_print.h
index 6dd099241..7c0110502 100644
--- a/src/directory_print.h
+++ b/src/directory_print.h
@@ -23,7 +23,7 @@
struct client;
struct directory;
-int
+void
directory_print(struct client *client, const struct directory *directory);
#endif