syntax: use const on put_id_list() variables

This commit is contained in:
Jan Edmund Lazo 2018-07-26 09:04:00 -04:00
parent b647ba6afb
commit 9229f7a05d

View File

@ -3695,15 +3695,13 @@ static void syn_list_cluster(int id)
} }
} }
static void put_id_list(const char *name, static void put_id_list(const char *const name,
short *list, // NOLINT(runtime/int) const int16_t *const list,
int attr) const int attr)
{ {
short *p;
msg_puts_attr(name, attr); msg_puts_attr(name, attr);
msg_putchar('='); msg_putchar('=');
for (p = list; *p; ++p) { for (const int16_t *p = list; *p; p++) {
if (*p >= SYNID_ALLBUT && *p < SYNID_TOP) { if (*p >= SYNID_ALLBUT && *p < SYNID_TOP) {
if (p[1]) { if (p[1]) {
msg_puts("ALLBUT"); msg_puts("ALLBUT");