From 12c2cfb7934cd0be8c90517d6c9e36385c19dc38 Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Mon, 11 Mar 2019 09:16:02 +0100 Subject: tcpdump: Constify --- freebsd/contrib/tcpdump/util-print.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'freebsd/contrib/tcpdump/util-print.c') diff --git a/freebsd/contrib/tcpdump/util-print.c b/freebsd/contrib/tcpdump/util-print.c index 7a5269dd..8a995534 100644 --- a/freebsd/contrib/tcpdump/util-print.c +++ b/freebsd/contrib/tcpdump/util-print.c @@ -401,9 +401,9 @@ void unsigned_relts_print(netdissect_options *ndo, uint32_t secs) { - static const char *lengths[] = {"y", "w", "d", "h", "m", "s"}; + static const char * const lengths[] = {"y", "w", "d", "h", "m", "s"}; static const u_int seconds[] = {31536000, 604800, 86400, 3600, 60, 1}; - const char **l = lengths; + const char * const *l = lengths; const u_int *s = seconds; if (secs == 0) { -- cgit v1.2.3