Skip to content

Commit 90530a8

Browse files
committed
Rename function for consistency
1 parent 9d8aee2 commit 90530a8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

pick.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ struct choice {
7070
double score;
7171
};
7272

73-
static int choicecmp(const void *, const void *);
73+
static int choice_cmp(const void *, const void *);
7474
static const char *choice_description(const struct choice *);
7575
static const char *choice_string(const struct choice *);
7676
static void delete_between(char *, size_t, size_t, size_t);
@@ -603,13 +603,13 @@ filter_choices(size_t nchoices)
603603
return 0;
604604
}
605605
}
606-
qsort(choices.v, nchoices, sizeof(struct choice), choicecmp);
606+
qsort(choices.v, nchoices, sizeof(struct choice), choice_cmp);
607607

608608
return 1;
609609
}
610610

611611
int
612-
choicecmp(const void *p1, const void *p2)
612+
choice_cmp(const void *p1, const void *p2)
613613
{
614614
const struct choice *c1, *c2;
615615

0 commit comments

Comments
 (0)