aboutsummaryrefslogtreecommitdiffstats
path: root/epan/nstime.c
diff options
context:
space:
mode:
authorStig Bjørlykke <stig@bjorlykke.org>2011-08-13 17:39:25 +0000
committerStig Bjørlykke <stig@bjorlykke.org>2011-08-13 17:39:25 +0000
commit154b9b9ee95e7a0b3d375843b90bea216e59bd60 (patch)
tree7430e8fa4b92e866041eff56b7695a7ef54d1ed4 /epan/nstime.c
parent64a6efe5d638f143cf05a1923c397ae3261b6f41 (diff)
From Edwin Groothuis via bug 6179:
Add nstime_copy. svn path=/trunk/; revision=38509
Diffstat (limited to 'epan/nstime.c')
-rw-r--r--epan/nstime.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/epan/nstime.c b/epan/nstime.c
index 7ceaf8e975..bec0bccb20 100644
--- a/epan/nstime.c
+++ b/epan/nstime.c
@@ -71,6 +71,16 @@ gboolean nstime_is_unset(nstime_t *nstime)
}
+/** funcion: nstime_copy
+ *
+ * a = b
+ */
+void nstime_copy(nstime_t *a, const nstime_t *b)
+{
+ a->secs = b->secs;
+ a->nsecs = b->nsecs;
+}
+
/*
* function: nstime_delta
* delta = b - a