diff options
author | Luis Ontanon <luis.ontanon@gmail.com> | 2006-03-15 20:52:37 +0000 |
---|---|---|
committer | Luis Ontanon <luis.ontanon@gmail.com> | 2006-03-15 20:52:37 +0000 |
commit | ecae4ddd06a21b2f81d883dd88c316c8143bbd6c (patch) | |
tree | cfd0a329951eb75c7f0ee7fb5d80f31831b86df7 /editcap.c | |
parent | b4d7dd60603ccab2fbd49f8ec6ab90b18ffe0a6a (diff) | |
download | wireshark-ecae4ddd06a21b2f81d883dd88c316c8143bbd6c.tar.gz wireshark-ecae4ddd06a21b2f81d883dd88c316c8143bbd6c.tar.bz2 wireshark-ecae4ddd06a21b2f81d883dd88c316c8143bbd6c.zip |
use time_t instead of an unsigned integer to sstore the time.
svn path=/trunk/; revision=17638
Diffstat (limited to 'editcap.c')
-rw-r--r-- | editcap.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -82,8 +82,8 @@ static int out_frame_type = -2; /* Leave frame type alone */ static int verbose = 0; /* Not so verbose */ static struct time_adjustment time_adj = {{0, 0}, 0}; /* no adjustment */ static double err_prob = 0.0; -static guint32 starttime = 0; -static guint32 stoptime = 4294967295; +static time_t starttime = 0; +static time_t stoptime = 4294967295; static gboolean check_startstop = FALSE; /* Add a selection item, a simple parser for now */ @@ -151,7 +151,7 @@ static int selected(int recno) /* is the packet in the selected timeframe */ static gboolean check_timestamp(wtap *wth) { struct wtap_pkthdr* pkthdr = wtap_phdr(wth); - return ((guint32) pkthdr->ts.secs >= starttime ) && ( (guint32) pkthdr->ts.secs <= stoptime ); + return ( (time_t) pkthdr->ts.secs >= starttime ) && ( (time_t) pkthdr->ts.secs <= stoptime ); } static void |