aboutsummaryrefslogtreecommitdiffstats
path: root/epan/nstime.c
diff options
context:
space:
mode:
authorStephen Fisher <steve@stephen-fisher.com>2007-04-03 21:17:13 +0000
committerStephen Fisher <steve@stephen-fisher.com>2007-04-03 21:17:13 +0000
commit6625e7503ff42d40780a1bf36e8070c02624ba6b (patch)
treec6563c2f2dae079e0be033a6a8fc81221faea4bc /epan/nstime.c
parent8a277a497f8dde4a143d6617b0f669e0ff62b5bf (diff)
Fix warnings on Linux/gcc 4.1.1
svn path=/trunk/; revision=21330
Diffstat (limited to 'epan/nstime.c')
-rw-r--r--epan/nstime.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/epan/nstime.c b/epan/nstime.c
index a60590ccc7..0ad5c94fa7 100644
--- a/epan/nstime.c
+++ b/epan/nstime.c
@@ -130,3 +130,12 @@ double nstime_to_sec(const nstime_t *time)
return ((double)time->secs + (double)time->nsecs/1000000000);
}
+/*
+ * function: wtap_nstime_to_sec
+ * converts wtap_nstime to double, time base is seconds
+ */
+
+double wtap_nstime_to_sec(const struct wtap_nstime *time)
+{
+ return ((double)time->secs + (double)time->nsecs/1000000000);
+}