aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2010-05-31 22:16:03 +0200
committerMax Kellermann <max@duempel.org>2010-05-31 22:16:03 +0200
commit53647c8ba1d7ce54a5caa0c7d414926bf4deb249 (patch)
tree3a7cd9b4e6c88c8ce0a0531978ba362cf605ac82
parentb571ba27a46d7e405eb161e60d675aba7b4fd265 (diff)
downloadmpd-53647c8ba1d7ce54a5caa0c7d414926bf4deb249.tar.gz
mpd-53647c8ba1d7ce54a5caa0c7d414926bf4deb249.tar.xz
mpd-53647c8ba1d7ce54a5caa0c7d414926bf4deb249.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 6d951d1bc..5bc32e6f8 100644
--- a/src/directory_print.c
+++ b/src/directory_print.c
@@ -23,7 +23,7 @@
#include "client.h"
#include "song_print.h"
-static int
+static void
dirvec_print(struct client *client, const struct dirvec *dv)
{
size_t i;
@@ -31,15 +31,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 dbeeefe4d..0933f5a97 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