mirror of
https://git.zx2c4.com/cgit
synced 2024-12-22 07:01:52 +00:00
ui-repolist: make sortcolumn definitions 'static const'
These are not used outside this file and are not declared; they are also never modified. Signed-off-by: John Keeping <john@keeping.me.uk>
This commit is contained in:
parent
3fe509e17a
commit
ad74669e67
@ -223,7 +223,7 @@ struct sortcolumn {
|
||||
int (*fn)(const void *a, const void *b);
|
||||
};
|
||||
|
||||
struct sortcolumn sortcolumn[] = {
|
||||
static const struct sortcolumn sortcolumn[] = {
|
||||
{"section", sort_section},
|
||||
{"name", sort_name},
|
||||
{"desc", sort_desc},
|
||||
@ -234,7 +234,7 @@ struct sortcolumn sortcolumn[] = {
|
||||
|
||||
static int sort_repolist(char *field)
|
||||
{
|
||||
struct sortcolumn *column;
|
||||
const struct sortcolumn *column;
|
||||
|
||||
for (column = &sortcolumn[0]; column->name; column++) {
|
||||
if (strcmp(field, column->name))
|
||||
|
Loading…
Reference in New Issue
Block a user