aboutsummaryrefslogtreecommitdiffstats
path: root/wiretap/visual.c
diff options
context:
space:
mode:
authorStig Bjørlykke <stig@bjorlykke.org>2022-08-24 09:51:10 +0200
committerGuy Harris <gharris@sonic.net>2022-08-24 23:26:19 +0000
commite0c302330b48173a89b66e166719b9b1c3462b81 (patch)
tree0b115629af16969436659d236ee81b7fb5c75619 /wiretap/visual.c
parenteba586040ebc1587ee59f161f52f11ae53c68686 (diff)
wiretap: Fix build on 32-bit Linux
Add WTAP_NSTIME_32BIT_SECS_MAX to define the maximum timestamp for some formats where this is not known.
Diffstat (limited to 'wiretap/visual.c')
-rw-r--r--wiretap/visual.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/wiretap/visual.c b/wiretap/visual.c
index f0fa86ea33..4707c86bbe 100644
--- a/wiretap/visual.c
+++ b/wiretap/visual.c
@@ -685,7 +685,7 @@ static gboolean visual_dump(wtap_dumper *wdh, const wtap_rec *rec,
* in which case we should check against G_MININT32 and G_MAXINT32
* and make start_time a gint32.
*/
- if (rec->ts.secs < 0 || rec->ts.secs > G_MAXUINT32) {
+ if (rec->ts.secs < 0 || rec->ts.secs > WTAP_NSTIME_32BIT_SECS_MAX) {
*err = WTAP_ERR_TIME_STAMP_NOT_SUPPORTED;
return FALSE;
}