diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2013-10-31 10:09:41 +0100 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2013-10-31 13:20:13 +0100 |
commit | 998ab3634ce4a824153ed64c5febb7acc8f0fed1 (patch) | |
tree | 0ba339a7aa12b7a319ebb1cc13e6c5787fbc2816 /freebsd/sbin/ping6/ping6.c | |
parent | PING6(8): Use local scope for functions (diff) | |
download | rtems-libbsd-998ab3634ce4a824153ed64c5febb7acc8f0fed1.tar.bz2 |
PING6(8): Add const qualifier
Diffstat (limited to 'freebsd/sbin/ping6/ping6.c')
-rw-r--r-- | freebsd/sbin/ping6/ping6.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/freebsd/sbin/ping6/ping6.c b/freebsd/sbin/ping6/ping6.c index 41a1cfed..750835a5 100644 --- a/freebsd/sbin/ping6/ping6.c +++ b/freebsd/sbin/ping6/ping6.c @@ -213,7 +213,7 @@ static u_int options; * to 8192 for complete accuracy... */ #define MAX_DUP_CHK (8 * 8192) -static int mx_dup_ck = MAX_DUP_CHK; +static const int mx_dup_ck = MAX_DUP_CHK; static char rcvd_tbl[MAX_DUP_CHK / 8]; static struct addrinfo *res; @@ -223,9 +223,9 @@ static socklen_t srclen; static int datalen = DEFDATALEN; static int s; /* socket file descriptor */ static u_char outpack[MAXPACKETLEN]; -static char BSPACE = '\b'; /* characters written for flood */ -static char BBELL = '\a'; /* characters written for AUDIBLE */ -static char DOT = '.'; +static const char BSPACE = '\b'; /* characters written for flood */ +static const char BBELL = '\a'; /* characters written for AUDIBLE */ +static const char DOT = '.'; static char *hostname; static int ident; /* process id to identify our packets */ static u_int8_t nonce[8]; /* nonce field for node information */ |