Commit 1d82edc6 authored by Max Kellermann's avatar Max Kellermann

ls: make printRemoteUrlHandlers() return void

printRemoteUrlHandlers() cannot fail, and does not need a return value.
parent 32877267
...@@ -275,7 +275,8 @@ handle_urlhandlers(struct client *client, ...@@ -275,7 +275,8 @@ handle_urlhandlers(struct client *client,
{ {
if (client_get_uid(client) > 0) if (client_get_uid(client) > 0)
client_puts(client, "handler: file://\n"); client_puts(client, "handler: file://\n");
return printRemoteUrlHandlers(client); printRemoteUrlHandlers(client);
return COMMAND_RETURN_OK;
} }
static enum command_return static enum command_return
......
...@@ -32,7 +32,7 @@ static const char *remoteUrlPrefixes[] = { ...@@ -32,7 +32,7 @@ static const char *remoteUrlPrefixes[] = {
NULL NULL
}; };
int printRemoteUrlHandlers(struct client *client) void printRemoteUrlHandlers(struct client *client)
{ {
const char **prefixes = remoteUrlPrefixes; const char **prefixes = remoteUrlPrefixes;
...@@ -40,8 +40,6 @@ int printRemoteUrlHandlers(struct client *client) ...@@ -40,8 +40,6 @@ int printRemoteUrlHandlers(struct client *client)
client_printf(client, "handler: %s\n", *prefixes); client_printf(client, "handler: %s\n", *prefixes);
prefixes++; prefixes++;
} }
return 0;
} }
int isRemoteUrl(const char *url) int isRemoteUrl(const char *url)
......
...@@ -31,6 +31,6 @@ int isRemoteUrl(const char *url); ...@@ -31,6 +31,6 @@ int isRemoteUrl(const char *url);
const struct decoder_plugin * const struct decoder_plugin *
hasMusicSuffix(const char *utf8file, unsigned int next); hasMusicSuffix(const char *utf8file, unsigned int next);
int printRemoteUrlHandlers(struct client *client); void printRemoteUrlHandlers(struct client *client);
#endif #endif
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment