mirror of
https://github.com/freebsd/freebsd-src
synced 2024-09-19 08:13:57 +00:00
Some easy const fixes.
This commit is contained in:
parent
dba464cc27
commit
fa6d48c068
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=95634
|
@ -177,7 +177,7 @@ struct protox {
|
||||||
void (*pr_stats)(u_long, char *, int);
|
void (*pr_stats)(u_long, char *, int);
|
||||||
/* statistics printing routine */
|
/* statistics printing routine */
|
||||||
void (*pr_istats)(char *); /* per/if 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 */
|
int pr_usesysctl; /* true if we use sysctl, not kvm */
|
||||||
} protox[] = {
|
} protox[] = {
|
||||||
{ -1, -1, 1, protopr,
|
{ -1, -1, 1, protopr,
|
||||||
|
@ -308,7 +308,7 @@ struct protox *protoprotox[] = {
|
||||||
#endif
|
#endif
|
||||||
NULL };
|
NULL };
|
||||||
|
|
||||||
static void printproto (struct protox *, char *);
|
static void printproto (struct protox *, const char *);
|
||||||
static void usage (void);
|
static void usage (void);
|
||||||
static struct protox *name2protox (char *);
|
static struct protox *name2protox (char *);
|
||||||
static struct protox *knownname (char *);
|
static struct protox *knownname (char *);
|
||||||
|
@ -612,7 +612,7 @@ main(argc, argv)
|
||||||
static void
|
static void
|
||||||
printproto(tp, name)
|
printproto(tp, name)
|
||||||
register struct protox *tp;
|
register struct protox *tp;
|
||||||
char *name;
|
const char *name;
|
||||||
{
|
{
|
||||||
void (*pr)(u_long, char *, int);
|
void (*pr)(u_long, char *, int);
|
||||||
u_long off;
|
u_long off;
|
||||||
|
|
Loading…
Reference in a new issue