diff options
-rw-r--r-- | ui-repolist.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ui-repolist.c b/ui-repolist.c index a6d0321..2453a7f 100644 --- a/ui-repolist.c +++ b/ui-repolist.c | |||
@@ -223,7 +223,7 @@ struct sortcolumn { | |||
223 | int (*fn)(const void *a, const void *b); | 223 | int (*fn)(const void *a, const void *b); |
224 | }; | 224 | }; |
225 | 225 | ||
226 | struct sortcolumn sortcolumn[] = { | 226 | static const struct sortcolumn sortcolumn[] = { |
227 | {"section", sort_section}, | 227 | {"section", sort_section}, |
228 | {"name", sort_name}, | 228 | {"name", sort_name}, |
229 | {"desc", sort_desc}, | 229 | {"desc", sort_desc}, |
@@ -234,7 +234,7 @@ struct sortcolumn sortcolumn[] = { | |||
234 | 234 | ||
235 | static int sort_repolist(char *field) | 235 | static int sort_repolist(char *field) |
236 | { | 236 | { |
237 | struct sortcolumn *column; | 237 | const struct sortcolumn *column; |
238 | 238 | ||
239 | for (column = &sortcolumn[0]; column->name; column++) { | 239 | for (column = &sortcolumn[0]; column->name; column++) { |
240 | if (strcmp(field, column->name)) | 240 | if (strcmp(field, column->name)) |