diff options
author | markm <markm@FreeBSD.org> | 2002-04-28 12:12:49 +0000 |
---|---|---|
committer | markm <markm@FreeBSD.org> | 2002-04-28 12:12:49 +0000 |
commit | 38c3f4b69aad2042037a8b3dc1e48ad4598fe03a (patch) | |
tree | feb21adff8e813cf9ea98c4418c640be8ae7d060 /usr.bin/netstat | |
parent | 62123726bdd1969e167cfabb5471097dfb6be2ad (diff) | |
download | FreeBSD-src-38c3f4b69aad2042037a8b3dc1e48ad4598fe03a.zip FreeBSD-src-38c3f4b69aad2042037a8b3dc1e48ad4598fe03a.tar.gz |
Some easy const fixes.
Diffstat (limited to 'usr.bin/netstat')
-rw-r--r-- | usr.bin/netstat/main.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/netstat/main.c b/usr.bin/netstat/main.c index 8d1e044..a4dce63 100644 --- a/usr.bin/netstat/main.c +++ b/usr.bin/netstat/main.c @@ -177,7 +177,7 @@ struct protox { void (*pr_stats)(u_long, char *, int); /* statistics printing routine */ void (*pr_istats)(char *); /* per/if statistics printing routine */ - char *pr_name; /* well-known name */ + const char *pr_name; /* well-known name */ int pr_usesysctl; /* true if we use sysctl, not kvm */ } protox[] = { { -1, -1, 1, protopr, @@ -308,7 +308,7 @@ struct protox *protoprotox[] = { #endif NULL }; -static void printproto (struct protox *, char *); +static void printproto (struct protox *, const char *); static void usage (void); static struct protox *name2protox (char *); static struct protox *knownname (char *); @@ -612,7 +612,7 @@ main(argc, argv) static void printproto(tp, name) register struct protox *tp; - char *name; + const char *name; { void (*pr)(u_long, char *, int); u_long off; |