tree-wide: constify a few static string tables
This commit is contained in:
committed by
Zbigniew Jędrzejewski-Szmek
parent
ebfb1b5724
commit
b82f71c7ff
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user