aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2014-12-09 22:01:15 +0100
committerMax Kellermann <max@duempel.org>2014-12-09 22:01:15 +0100
commitb70df57f7ba01cda4b57a7fb193b25aa12c649e6 (patch)
treec6c307007af5c7f1fe96db22ad0707431f759aff
parente813c93e085b4f18e94da5022d3f57ad2781d244 (diff)
downloadmpd-b70df57f7ba01cda4b57a7fb193b25aa12c649e6.tar.gz
mpd-b70df57f7ba01cda4b57a7fb193b25aa12c649e6.tar.xz
mpd-b70df57f7ba01cda4b57a7fb193b25aa12c649e6.zip
ls: make the static array "const"
-rw-r--r--src/ls.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/ls.cxx b/src/ls.cxx
index 4e8fc88ab..fe70cdc11 100644
--- a/src/ls.cxx
+++ b/src/ls.cxx
@@ -30,7 +30,7 @@
* is detected at runtime and displayed as a urlhandler if the client is
* connected by IPC socket.
*/
-static const char *remoteUrlPrefixes[] = {
+static const char *const remoteUrlPrefixes[] = {
#if defined(ENABLE_CURL)
"http://",
"https://",
@@ -69,7 +69,7 @@ static const char *remoteUrlPrefixes[] = {
void print_supported_uri_schemes_to_fp(FILE *fp)
{
- const char **prefixes = remoteUrlPrefixes;
+ const char *const*prefixes = remoteUrlPrefixes;
#ifdef HAVE_UN
fprintf(fp, " file://");
@@ -83,7 +83,7 @@ void print_supported_uri_schemes_to_fp(FILE *fp)
void print_supported_uri_schemes(Client &client)
{
- const char **prefixes = remoteUrlPrefixes;
+ const char *const *prefixes = remoteUrlPrefixes;
while (*prefixes) {
client_printf(client, "handler: %s\n", *prefixes);
@@ -93,7 +93,7 @@ void print_supported_uri_schemes(Client &client)
bool uri_supported_scheme(const char *uri)
{
- const char **urlPrefixes = remoteUrlPrefixes;
+ const char *const*urlPrefixes = remoteUrlPrefixes;
assert(uri_has_scheme(uri));