Changeset 12c2cfb in rtems-libbsd for freebsd/contrib/tcpdump/util-print.c


Ignore:
Timestamp:
03/11/19 08:16:02 (4 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
5, master
Children:
d315955
Parents:
6427453
git-author:
Sebastian Huber <sebastian.huber@…> (03/11/19 08:16:02)
git-committer:
Sebastian Huber <sebastian.huber@…> (03/11/19 08:37:03)
Message:

tcpdump: Constify

File:
1 edited

Legend:

Unmodified
Added
Removed
  • freebsd/contrib/tcpdump/util-print.c

    r6427453 r12c2cfb  
    402402                     uint32_t secs)
    403403{
    404         static const char *lengths[] = {"y", "w", "d", "h", "m", "s"};
     404        static const char * const lengths[] = {"y", "w", "d", "h", "m", "s"};
    405405        static const u_int seconds[] = {31536000, 604800, 86400, 3600, 60, 1};
    406         const char **l = lengths;
     406        const char * const *l = lengths;
    407407        const u_int *s = seconds;
    408408
Note: See TracChangeset for help on using the changeset viewer.