aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-iax2.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2018-06-27 20:39:15 -0700
committerGuy Harris <guy@alum.mit.edu>2018-06-28 03:39:54 +0000
commit8304f69fd7f02cb5fe79010170c7550d441ad6e7 (patch)
tree5b95441afcd9ff732999054dffb13939e03cdce9 /epan/dissectors/packet-iax2.c
parentc8518753c8d3f7bb809d2615adc9f6f2e5e89530 (diff)
Add macros to initialize nstime_t values and use them.
This allows code to initialize them without having to know the details of the structure; the initializes should, and will, be changed if the members of the structure are changed. Change-Id: I93e6ebfcde9ceca17df696fcba4e8410c5afb175 Reviewed-on: https://code.wireshark.org/review/28501 Reviewed-by: Guy Harris <guy@alum.mit.edu>
Diffstat (limited to 'epan/dissectors/packet-iax2.c')
-rw-r--r--epan/dissectors/packet-iax2.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/epan/dissectors/packet-iax2.c b/epan/dissectors/packet-iax2.c
index 79cb123bea..472b2517bf 100644
--- a/epan/dissectors/packet-iax2.c
+++ b/epan/dissectors/packet-iax2.c
@@ -996,7 +996,7 @@ static iax_call_data *iax_new_call( packet_info *pinfo,
{
iax_call_data *call;
guint circuit_id;
- static const nstime_t millisecond = {0, 1000000};
+ static const nstime_t millisecond = NSTIME_INIT_SECS_MSECS(0, 1);
#ifdef DEBUG_HASHING
g_debug("+ new_circuit: Handling NEW packet, frame %u", pinfo->num);