NETSTAT(1): Add const qualifier

This commit is contained in:
Sebastian Huber
2013-10-30 14:21:20 +01:00
parent a400e1d849
commit 4db7af6afb
2 changed files with 18 additions and 378 deletions

View File

@@ -90,7 +90,7 @@ __FBSDID("$FreeBSD$");
struct bits {
u_long b_mask;
char b_val;
} bits[] = {
} static const bits[] = {
{ RTF_UP, 'U' },
{ RTF_GATEWAY, 'G' },
{ RTF_HOST, 'H' },
@@ -772,7 +772,7 @@ fmt_flags(int f)
{
static char name[33];
char *flags;
struct bits *p = bits;
const struct bits *p = bits;
for (flags = name; p->b_mask; p++)
if (p->b_mask & f)