diff options
author | João Valverde <j@v6e.pt> | 2021-06-28 13:50:14 +0100 |
---|---|---|
committer | Wireshark GitLab Utility <gerald+gitlab-utility@wireshark.org> | 2021-06-29 14:19:55 +0000 |
commit | 4124986a9c241fa235a55862ba8c4b419ba66b94 (patch) | |
tree | c6d8eae40e3d56909db05009fd04099fe883c4db /dumpcap.c | |
parent | 1329081379811bd5049b40cee5f64fb0af8a9a06 (diff) |
wslog: Prefer more modern time APIs
Functions clock_gettime() and timespec_get() cover all the platforms
we support with sub-second resolution in a a portable manner. Fallback
to using time().
Pass a struct timespec to the log writer callback for maximum
flexibility.
Diffstat (limited to 'dumpcap.c')
-rw-r--r-- | dumpcap.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -329,7 +329,7 @@ static gboolean need_timeout_workaround; static void dumpcap_log_writer(const char *domain, enum ws_log_level level, - const char *timestamp, + ws_log_time_t timestamp, const char *file, int line, const char *func, const char *user_format, va_list user_ap, void *user_data); @@ -5573,7 +5573,7 @@ main(int argc, char *argv[]) static void dumpcap_log_writer(const char *domain, enum ws_log_level level, - const char *timestamp, + ws_log_time_t timestamp, const char *file, int line, const char *func, const char *user_format, va_list user_ap, void *user_data _U_) |