Wireshark-commits: [Wireshark-commits] master a152e04: Put various epoch time deltas into wsutil/ep

From: Wireshark code review <code-review-do-not-reply@xxxxxxxxxxxxx>
Date: Tue, 21 Jan 2020 23:37:14 +0000
URL: https://code.wireshark.org/review/gitweb?p=wireshark.git;a=commit;h=a152e041fa893ba672dcb1337c596ec15fdb0c0d
Submitter: "Guy Harris <guy@xxxxxxxxxxxx>"
Changed: branch: master
Repository: wireshark

Commits:

a152e04 by Guy Harris (guy@xxxxxxxxxxxx):

    Put various epoch time deltas into wsutil/epochs.h.
    
    There are some deltas between the UN*X epoch and other epochs that are
    used in a number of places; put them into a header.
    
    Change-Id: Ia2d9d69b9d91352d730d97d9e4897518635b4861
    Reviewed-on: https://code.wireshark.org/review/35895
    Petri-Dish: Guy Harris <guy@xxxxxxxxxxxx>
    Tested-by: Petri Dish Buildbot
    Reviewed-by: Guy Harris <guy@xxxxxxxxxxxx>
    

Actions performed:

    from  d44c5e4   x509af,ocsp,ber: display serialNumber (INTEGER) as bytes
     add  a152e04   Put various epoch time deltas into wsutil/epochs.h.


Summary of changes:
 epan/dissectors/asn1/lte-rrc/lte-rrc.cnf           |  2 +-
 .../asn1/lte-rrc/packet-lte-rrc-template.c         |  1 +
 epan/dissectors/asn1/nr-rrc/nr-rrc.cnf             |  2 +-
 .../asn1/nr-rrc/packet-nr-rrc-template.c           |  1 +
 epan/dissectors/packet-lte-rrc.c                   | 17 ++++---
 epan/dissectors/packet-nr-rrc.c                    | 17 ++++---
 epan/dissectors/packet-ntp.c                       |  9 +++-
 epan/dissectors/packet-tds.c                       |  6 ++-
 epan/dissectors/packet-time.c                      |  4 +-
 epan/proto.c                                       | 30 +++++-------
 wiretap/peekclassic.c                              | 10 ++--
 writecap/pcapio.c                                  |  4 +-
 wsutil/CMakeLists.txt                              |  1 +
 wsutil/epochs.h                                    | 57 ++++++++++++++++++++++
 wsutil/nstime.c                                    | 32 ++----------
 wsutil/time_util.c                                 |  4 +-
 16 files changed, 124 insertions(+), 73 deletions(-)
 create mode 100644 wsutil/epochs.h