dcerpc-netlogon: remove unused variable
[wireshark-sm.git] / epan / timestamp.c
blobe7fced8da9cf59b496ec3a96e1db7035b129769d
1 /* timestamp.c
2 * Routines for timestamp type setting.
4 * Wireshark - Network traffic analyzer
5 * By Gerald Combs <gerald@wireshark.org>
6 * Copyright 1998 Gerald Combs
8 * SPDX-License-Identifier: GPL-2.0-or-later
9 */
11 #include "config.h"
13 #include "timestamp.h"
15 /* Init with an invalid value, so that "recent" in ui/gtk/menu.c can detect this
16 * and distinguish it from a command line value */
17 static ts_type timestamp_type = TS_NOT_SET;
19 static int timestamp_precision = TS_PREC_AUTO;
21 static ts_seconds_type timestamp_seconds_type = TS_SECONDS_NOT_SET;
23 ts_type timestamp_get_type(void)
25 return timestamp_type;
28 void timestamp_set_type(ts_type ts_t)
30 timestamp_type = ts_t;
34 int timestamp_get_precision(void)
36 return timestamp_precision;
39 void timestamp_set_precision(int tsp)
41 timestamp_precision = tsp;
45 ts_seconds_type timestamp_get_seconds_type(void)
47 return timestamp_seconds_type;
50 void timestamp_set_seconds_type(ts_seconds_type ts_t)
52 timestamp_seconds_type = ts_t;
56 * Editor modelines - https://www.wireshark.org/tools/modelines.html
58 * Local variables:
59 * c-basic-offset: 8
60 * tab-width: 8
61 * indent-tabs-mode: t
62 * End:
64 * vi: set shiftwidth=8 tabstop=8 noexpandtab:
65 * :indentSize=8:tabSize=8:noTabs=false: