aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/command.c3
-rw-r--r--src/ls.c4
-rw-r--r--src/ls.h2
3 files changed, 4 insertions, 5 deletions
diff --git a/src/command.c b/src/command.c
index c725282aa..bc5273637 100644
--- a/src/command.c
+++ b/src/command.c
@@ -275,7 +275,8 @@ handle_urlhandlers(struct client *client,
{
if (client_get_uid(client) > 0)
client_puts(client, "handler: file://\n");
- return printRemoteUrlHandlers(client);
+ printRemoteUrlHandlers(client);
+ return COMMAND_RETURN_OK;
}
static enum command_return
diff --git a/src/ls.c b/src/ls.c
index fb67910f7..3de260d8b 100644
--- a/src/ls.c
+++ b/src/ls.c
@@ -32,7 +32,7 @@ static const char *remoteUrlPrefixes[] = {
NULL
};
-int printRemoteUrlHandlers(struct client *client)
+void printRemoteUrlHandlers(struct client *client)
{
const char **prefixes = remoteUrlPrefixes;
@@ -40,8 +40,6 @@ int printRemoteUrlHandlers(struct client *client)
client_printf(client, "handler: %s\n", *prefixes);
prefixes++;
}
-
- return 0;
}
int isRemoteUrl(const char *url)
diff --git a/src/ls.h b/src/ls.h
index 80f427e22..4253431ec 100644
--- a/src/ls.h
+++ b/src/ls.h
@@ -31,6 +31,6 @@ int isRemoteUrl(const char *url);
const struct decoder_plugin *
hasMusicSuffix(const char *utf8file, unsigned int next);
-int printRemoteUrlHandlers(struct client *client);
+void printRemoteUrlHandlers(struct client *client);
#endif