summaryrefslogtreecommitdiff
path: root/wsutil/nstime.h
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2014-05-23 16:40:56 -0700
committerGuy Harris <guy@alum.mit.edu>2014-05-23 23:41:21 +0000
commitd470a468a63a081688ddc2c6d125e4e2edafecfc (patch)
treefade7330c732842355b5d957a2fe98e868bf3a49 /wsutil/nstime.h
parent9e2db542a28377d106c4dc99fff15499a4e26fd7 (diff)
downloadwireshark-d470a468a63a081688ddc2c6d125e4e2edafecfc.tar.gz
More handling of missing time stamps.
Make nstime_cmp() handle "unset" time stamps (they're equal to other "unset" time stamps, and less than all other time stamps), use it in reordercap, and "unset" the time stamp if it's absent. Also, nstime_cmp() does not modify its argument, so make it const. Change-Id: I016dab5fefaf4696e78cbd8c6dd3395808e54369 Reviewed-on: https://code.wireshark.org/review/1769 Reviewed-by: Guy Harris <guy@alum.mit.edu>
Diffstat (limited to 'wsutil/nstime.h')
-rw-r--r--wsutil/nstime.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/wsutil/nstime.h b/wsutil/nstime.h
index 3222ed18ba..a74457c8b6 100644
--- a/wsutil/nstime.h
+++ b/wsutil/nstime.h
@@ -56,7 +56,7 @@ WS_DLL_PUBLIC gboolean nstime_is_zero(nstime_t *nstime);
WS_DLL_PUBLIC void nstime_set_unset(nstime_t *nstime);
/* is the given nstime_t currently (0,maxint)? */
-WS_DLL_PUBLIC gboolean nstime_is_unset(nstime_t *nstime);
+WS_DLL_PUBLIC gboolean nstime_is_unset(const nstime_t *nstime);
/** duplicate the current time
*