aboutsummaryrefslogtreecommitdiff
path: root/src/format.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/format.c')
-rw-r--r--src/format.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/format.c b/src/format.c
index 0f25084..73d645e 100644
--- a/src/format.c
+++ b/src/format.c
@@ -94,7 +94,7 @@ static bool format_option_match(format_pair_t *part, const format_option_t *opti
format_mark_t mark = 0;
size_t off = 0, tmp = 0;
- for (format_pair_t *ps = option->prefixes; ps != NULL && ps->string != NULL; ps++) {
+ for (const format_pair_t *ps = option->prefixes; ps != NULL && ps->string != NULL; ps++) {
tmp = format_option_cmp(part->string, ps->string);
if (tmp != 0) {
off += tmp;
@@ -108,7 +108,7 @@ static bool format_option_match(format_pair_t *part, const format_option_t *opti
off += tmp;
mark |= option->option.mark;
- for (format_pair_t *ss = option->suffixes; ss != NULL && ss->string != NULL; ss++) {
+ for (const format_pair_t *ss = option->suffixes; ss != NULL && ss->string != NULL; ss++) {
tmp = format_option_cmp(part->string + off, ss->string);
if (tmp != 0) {
off += tmp;