diff options
author | Stig Bjørlykke <stig@bjorlykke.org> | 2022-08-24 09:51:10 +0200 |
---|---|---|
committer | Guy Harris <gharris@sonic.net> | 2022-08-24 23:26:19 +0000 |
commit | e0c302330b48173a89b66e166719b9b1c3462b81 (patch) | |
tree | 0b115629af16969436659d236ee81b7fb5c75619 /wiretap/netxray.c | |
parent | eba586040ebc1587ee59f161f52f11ae53c68686 (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/netxray.c')
-rw-r--r-- | wiretap/netxray.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/wiretap/netxray.c b/wiretap/netxray.c index 9e1ed447e9..74f244c2f2 100644 --- a/wiretap/netxray.c +++ b/wiretap/netxray.c @@ -1812,7 +1812,7 @@ netxray_dump_1_1(wtap_dumper *wdh, * G_MININT32 and G_MAXINT32 and make start_secs 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; } @@ -2011,7 +2011,7 @@ netxray_dump_2_0(wtap_dumper *wdh, * G_MININT32 and G_MAXINT32 and make start_secs 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; } |