Skip to content

Commit

Permalink
Add const qualifier where appropriate
Browse files Browse the repository at this point in the history
Submitted by:	Sebastian Huber <[email protected]>
  • Loading branch information
grimreaper committed Dec 4, 2013
1 parent ef47a0a commit 698eaa9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sbin/route/route.c
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ __FBSDID("$FreeBSD$");
static struct keytab {
const char *kt_cp;
int kt_i;
} keywords[] = {
} const keywords[] = {
#include "keywords.h"
{0, 0}
};
Expand Down Expand Up @@ -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++;
Expand Down

0 comments on commit 698eaa9

Please sign in to comment.