summaryrefslogtreecommitdiffstats
path: root/freebsd/sbin/ping6/ping6.c
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2013-10-31 10:09:41 +0100
committerSebastian Huber <sebastian.huber@embedded-brains.de>2013-10-31 13:20:13 +0100
commit998ab3634ce4a824153ed64c5febb7acc8f0fed1 (patch)
tree0ba339a7aa12b7a319ebb1cc13e6c5787fbc2816 /freebsd/sbin/ping6/ping6.c
parentPING6(8): Use local scope for functions (diff)
downloadrtems-libbsd-998ab3634ce4a824153ed64c5febb7acc8f0fed1.tar.bz2
PING6(8): Add const qualifier
Diffstat (limited to 'freebsd/sbin/ping6/ping6.c')
-rw-r--r--freebsd/sbin/ping6/ping6.c8
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 */