Add const qualifier where appropriate
Submitted by: Sebastian Huber <sebastian.huber@embedded-brains.de>
This commit is contained in:
parent
ef47a0af1a
commit
698eaa9289
@ -74,7 +74,7 @@ __FBSDID("$FreeBSD$");
|
|||||||
static struct keytab {
|
static struct keytab {
|
||||||
const char *kt_cp;
|
const char *kt_cp;
|
||||||
int kt_i;
|
int kt_i;
|
||||||
} keywords[] = {
|
} const keywords[] = {
|
||||||
#include "keywords.h"
|
#include "keywords.h"
|
||||||
{0, 0}
|
{0, 0}
|
||||||
};
|
};
|
||||||
@ -1848,7 +1848,7 @@ printb(int b, const char *str)
|
|||||||
int
|
int
|
||||||
keyword(const char *cp)
|
keyword(const char *cp)
|
||||||
{
|
{
|
||||||
struct keytab *kt = keywords;
|
const struct keytab *kt = keywords;
|
||||||
|
|
||||||
while (kt->kt_cp != NULL && strcmp(kt->kt_cp, cp) != 0)
|
while (kt->kt_cp != NULL && strcmp(kt->kt_cp, cp) != 0)
|
||||||
kt++;
|
kt++;
|
||||||
|
Loading…
Reference in New Issue
Block a user