Don't use quad_t on FreeBSD (deprecated) so use "long long" instead.
Someday this should be converted to uint64_t and printstate.c changed to use those horrid PRiud64 things.
This commit is contained in:
parent
66116c07a7
commit
e01de6cda3
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=145640
@ -64,7 +64,7 @@ u_long now;
|
||||
ips.is_icmp.ici_seq, ips.is_icmp.ici_type);
|
||||
|
||||
#ifdef USE_QUAD_T
|
||||
PRINTF("\tforward: pkts in %qd bytes in %qd pkts out %qd bytes out %qd\n\tbackward: pkts in %qd bytes in %qd pkts out %qd bytes out %qd\n",
|
||||
PRINTF("\tforward: pkts in %lld bytes in %lld pkts out %lld bytes out %lld\n\tbackward: pkts in %lld bytes in %lld pkts out %lld bytes out %lld\n",
|
||||
ips.is_pkts[0], ips.is_bytes[0],
|
||||
ips.is_pkts[1], ips.is_bytes[1],
|
||||
ips.is_pkts[2], ips.is_bytes[2],
|
||||
|
@ -1389,10 +1389,10 @@ extern void eMrwlock_downgrade __P((eMrwlock_t *, char *, int));
|
||||
* On BSD's use quad_t as a guarantee for getting at least a 64bit sized
|
||||
* object.
|
||||
*/
|
||||
#if BSD > 199306
|
||||
#if (BSD > 199306)
|
||||
# define USE_QUAD_T
|
||||
# define U_QUAD_T u_quad_t
|
||||
# define QUAD_T quad_t
|
||||
# define U_QUAD_T unsigned long long
|
||||
# define QUAD_T long long
|
||||
#else /* BSD > 199306 */
|
||||
# define U_QUAD_T u_long
|
||||
# define QUAD_T long
|
||||
|
Loading…
Reference in New Issue
Block a user