directory_print: return void
There is no useful return value here.
This commit is contained in:
parent
77e6810c14
commit
1bffdabe41
@ -22,7 +22,7 @@
|
|||||||
#include "client.h"
|
#include "client.h"
|
||||||
#include "song_print.h"
|
#include "song_print.h"
|
||||||
|
|
||||||
static int
|
static void
|
||||||
dirvec_print(struct client *client, const struct dirvec *dv)
|
dirvec_print(struct client *client, const struct dirvec *dv)
|
||||||
{
|
{
|
||||||
size_t i;
|
size_t i;
|
||||||
@ -30,15 +30,11 @@ dirvec_print(struct client *client, const struct dirvec *dv)
|
|||||||
for (i = 0; i < dv->nr; ++i)
|
for (i = 0; i < dv->nr; ++i)
|
||||||
client_printf(client, DIRECTORY_DIR "%s\n",
|
client_printf(client, DIRECTORY_DIR "%s\n",
|
||||||
directory_get_path(dv->base[i]));
|
directory_get_path(dv->base[i]));
|
||||||
|
|
||||||
return 0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
int
|
void
|
||||||
directory_print(struct client *client, const struct directory *directory)
|
directory_print(struct client *client, const struct directory *directory)
|
||||||
{
|
{
|
||||||
dirvec_print(client, &directory->children);
|
dirvec_print(client, &directory->children);
|
||||||
songvec_print(client, &directory->songs);
|
songvec_print(client, &directory->songs);
|
||||||
|
|
||||||
return 0;
|
|
||||||
}
|
}
|
||||||
|
@ -23,7 +23,7 @@
|
|||||||
struct client;
|
struct client;
|
||||||
struct directory;
|
struct directory;
|
||||||
|
|
||||||
int
|
void
|
||||||
directory_print(struct client *client, const struct directory *directory);
|
directory_print(struct client *client, const struct directory *directory);
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user