Add const qualifier where appropriate

Submitted by:	Sebastian Huber <sebastian.huber@embedded-brains.de>
This commit is contained in:
eadler 2013-12-04 04:29:52 +00:00
parent ef47a0af1a
commit 698eaa9289

View File

@ -74,7 +74,7 @@ __FBSDID("$FreeBSD$");
static struct keytab {
const char *kt_cp;
int kt_i;
} keywords[] = {
} const keywords[] = {
#include "keywords.h"
{0, 0}
};
@ -1848,7 +1848,7 @@ printb(int b, const char *str)
int
keyword(const char *cp)
{
struct keytab *kt = keywords;
const struct keytab *kt = keywords;
while (kt->kt_cp != NULL && strcmp(kt->kt_cp, cp) != 0)
kt++;