diff options
author | Guy Harris <guy@alum.mit.edu> | 2001-09-14 07:10:13 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2001-09-14 07:10:13 +0000 |
commit | 1d42c94b05cf2e4ec056d780b919a05159a17b72 (patch) | |
tree | f03564f0bad20129e2a6ef83bc198287372a9cae /packet-nisplus.c | |
parent | e32028f6cd3ea4a18a7364fbb32affb4077217d0 (diff) | |
download | wireshark-1d42c94b05cf2e4ec056d780b919a05159a17b72.tar.gz wireshark-1d42c94b05cf2e4ec056d780b919a05159a17b72.tar.bz2 wireshark-1d42c94b05cf2e4ec056d780b919a05159a17b72.zip |
Make the resolution for time values be nanoseconds rather than
microseconds.
Fix some "signed vs. unsigned" comparison warnings.
svn path=/trunk/; revision=3934
Diffstat (limited to 'packet-nisplus.c')
-rw-r--r-- | packet-nisplus.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/packet-nisplus.c b/packet-nisplus.c index 79cf345f75..52fd14fd34 100644 --- a/packet-nisplus.c +++ b/packet-nisplus.c @@ -1,7 +1,7 @@ /* packet-nisplus.c * 2001 Ronnie Sahlberg <rsahlber@bigpond.net.au> * - * $Id: packet-nisplus.c,v 1.7 2001/06/18 02:17:50 guy Exp $ + * $Id: packet-nisplus.c,v 1.8 2001/09/14 07:10:05 guy Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@ethereal.com> @@ -26,7 +26,6 @@ #include "config.h" #endif - #ifdef HAVE_SYS_TYPES_H #include <sys/types.h> #endif @@ -268,13 +267,13 @@ static const value_string ns_type[] = { static int dissect_nisplus_time(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, int hfindex) { - struct timeval tv; + nstime_t ts; - tv.tv_usec = 0; - tv.tv_sec = tvb_get_ntohl(tvb, offset); + ts.nsecs = 0; + ts.secs = tvb_get_ntohl(tvb, offset); offset += 4; - proto_tree_add_time(tree, hfindex, tvb, offset, 4, &tv); + proto_tree_add_time(tree, hfindex, tvb, offset, 4, &ts); return offset; } |