From d470a468a63a081688ddc2c6d125e4e2edafecfc Mon Sep 17 00:00:00 2001 From: Guy Harris Date: Fri, 23 May 2014 16:40:56 -0700 Subject: 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 --- wsutil/nstime.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'wsutil/nstime.h') 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 * -- cgit v1.2.1