mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 22:58:20 +00:00
Fixing some more format strings.
This commit is contained in:
parent
714289bd13
commit
b01aa66fe6
3 changed files with 5 additions and 5 deletions
|
@ -8,8 +8,8 @@
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
#include <regex.h>
|
#include <regex.h>
|
||||||
|
|
||||||
# define FMT_INT "%lld"
|
# define FMT_INT "%" PRId64
|
||||||
# define FMT_UINT "%llu"
|
# define FMT_UINT "%" PRIu64
|
||||||
|
|
||||||
static TableType* bt_tracker_headers = 0;
|
static TableType* bt_tracker_headers = 0;
|
||||||
static RecordType* bittorrent_peer;
|
static RecordType* bittorrent_peer;
|
||||||
|
|
|
@ -127,7 +127,7 @@ void ODesc::Add(int64 i)
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
char tmp[256];
|
char tmp[256];
|
||||||
sprintf(tmp, "%lld", i);
|
sprintf(tmp, "%" PRId64, i);
|
||||||
Add(tmp);
|
Add(tmp);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -139,7 +139,7 @@ void ODesc::Add(uint64 u)
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
char tmp[256];
|
char tmp[256];
|
||||||
sprintf(tmp, "%llu", u);
|
sprintf(tmp, "%" PRIu64, u);
|
||||||
Add(tmp);
|
Add(tmp);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -230,7 +230,7 @@ int HTTP_Entity::Undelivered(int64_t len)
|
||||||
{
|
{
|
||||||
if ( DEBUG_http )
|
if ( DEBUG_http )
|
||||||
{
|
{
|
||||||
DEBUG_MSG("Content gap %d, expect_data_length %d\n",
|
DEBUG_MSG("Content gap %" PRId64", expect_data_length %" PRId64 "\n",
|
||||||
len, expect_data_length);
|
len, expect_data_length);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue