diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2019-03-11 09:16:02 +0100 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2019-03-11 09:37:03 +0100 |
commit | 12c2cfb7934cd0be8c90517d6c9e36385c19dc38 (patch) | |
tree | 798eddffcbea78dc00cd688387282f4191c06023 /freebsd/contrib/tcpdump/util-print.c | |
parent | rcconf02: Reduce maximum connection counts (diff) | |
download | rtems-libbsd-12c2cfb7934cd0be8c90517d6c9e36385c19dc38.tar.bz2 |
tcpdump: Constify
Diffstat (limited to '')
-rw-r--r-- | freebsd/contrib/tcpdump/util-print.c | 4 |
1 files changed, 2 insertions, 2 deletions
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) { |