tree-wide: constify a few static string tables

This commit is contained in:
Lennart Poettering
2019-03-25 14:04:34 +01:00
committed by Zbigniew Jędrzejewski-Szmek
parent ebfb1b5724
commit b82f71c7ff
11 changed files with 22 additions and 15 deletions
+8 -1
View File
@@ -179,7 +179,14 @@ static void test_find_binary(const char *self) {
}
static void test_prefixes(void) {
static const char* values[] = { "/a/b/c/d", "/a/b/c", "/a/b", "/a", "", NULL};
static const char* const values[] = {
"/a/b/c/d",
"/a/b/c",
"/a/b",
"/a",
"",
NULL
};
unsigned i;
char s[PATH_MAX];
bool b;