mirror of
https://github.com/zeek/zeek.git
synced 2025-10-06 08:38:20 +00:00
Deprecate the internal int/uint types in favor of the cstdint types they were based on
This commit is contained in:
parent
18e4976c6c
commit
54752ef9a1
218 changed files with 1331 additions and 1323 deletions
|
@ -249,12 +249,12 @@ void net_packet_dispatch(double t, const Packet* pkt, iosource::PktSrc* src_ps)
|
|||
|
||||
if ( load_sample )
|
||||
{
|
||||
static uint32 load_freq = 0;
|
||||
static uint32_t load_freq = 0;
|
||||
|
||||
if ( load_freq == 0 )
|
||||
load_freq = uint32(0xffffffff) / uint32(load_sample_freq);
|
||||
load_freq = uint32_t(0xffffffff) / uint32_t(load_sample_freq);
|
||||
|
||||
if ( uint32(bro_random() & 0xffffffff) < load_freq )
|
||||
if ( uint32_t(bro_random() & 0xffffffff) < load_freq )
|
||||
{
|
||||
// Drain the queued timer events so they're not
|
||||
// charged against this sample.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue