Constify.
This commit is contained in:
parent
36aee9b2c9
commit
cfe9ef5ba6
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: extern.h,v 1.12 2008/09/09 16:55:28 dyoung Exp $ */
|
||||
/* $NetBSD: extern.h,v 1.13 2008/09/10 01:06:58 dyoung Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1997 Christos Zoulas. All rights reserved.
|
||||
|
@ -33,9 +33,9 @@ struct sockaddr;
|
|||
struct sockaddr_x25;
|
||||
struct sockaddr_ns;
|
||||
|
||||
void parse_show_opts(int, char **, int *, int *, const char **, bool);
|
||||
void parse_show_opts(int, char * const *, int *, int *, const char **, bool);
|
||||
/* show.c */
|
||||
void show(int, char **);
|
||||
void show(int, char * const *);
|
||||
|
||||
/* route.c */
|
||||
extern int nflag, Sflag;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: route.c,v 1.113 2008/09/10 00:57:57 dyoung Exp $ */
|
||||
/* $NetBSD: route.c,v 1.114 2008/09/10 01:00:02 dyoung Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1983, 1989, 1991, 1993
|
||||
|
@ -39,7 +39,7 @@ __COPYRIGHT("@(#) Copyright (c) 1983, 1989, 1991, 1993\
|
|||
#if 0
|
||||
static char sccsid[] = "@(#)route.c 8.6 (Berkeley) 4/28/95";
|
||||
#else
|
||||
__RCSID("$NetBSD: route.c,v 1.113 2008/09/10 00:57:57 dyoung Exp $");
|
||||
__RCSID("$NetBSD: route.c,v 1.114 2008/09/10 01:00:02 dyoung Exp $");
|
||||
#endif
|
||||
#endif /* not lint */
|
||||
|
||||
|
@ -77,7 +77,7 @@ typedef union sockunion *sup;
|
|||
|
||||
static char *any_ntoa(const struct sockaddr *);
|
||||
static const char *route_strerror(int);
|
||||
static void set_metric(char *, int);
|
||||
static void set_metric(const char *, int);
|
||||
static int newroute(int, char **);
|
||||
static void inet_makenetandmask(u_int32_t, struct sockaddr_in *);
|
||||
#ifdef INET6
|
||||
|
@ -737,7 +737,7 @@ route_strerror(int error)
|
|||
}
|
||||
|
||||
static void
|
||||
set_metric(char *value, int key)
|
||||
set_metric(const char *value, int key)
|
||||
{
|
||||
int flag = 0;
|
||||
u_long noval, *valp = &noval;
|
||||
|
|
Loading…
Reference in New Issue