mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 06:38:20 +00:00
Fix errors/warnings when compiling with -std=c++11
These are compatibility changes only.
This commit is contained in:
parent
a26c674dfd
commit
e60ceea87c
15 changed files with 33 additions and 32 deletions
|
@ -541,19 +541,19 @@ bool XMLSerializationFormat::Write(uint16 v, const char* tag)
|
|||
|
||||
bool XMLSerializationFormat::Write(uint32 v, const char* tag)
|
||||
{
|
||||
const char* tmp = fmt("%"PRIu32, v);
|
||||
const char* tmp = fmt("%" PRIu32, v);
|
||||
return WriteElem(tag, "uint32", tmp, strlen(tmp));
|
||||
}
|
||||
|
||||
bool XMLSerializationFormat::Write(uint64 v, const char* tag)
|
||||
{
|
||||
const char* tmp = fmt("%"PRIu64, v);
|
||||
const char* tmp = fmt("%" PRIu64, v);
|
||||
return WriteElem(tag, "uint64", tmp, strlen(tmp));
|
||||
}
|
||||
|
||||
bool XMLSerializationFormat::Write(int64 v, const char* tag)
|
||||
{
|
||||
const char* tmp = fmt("%"PRId64, v);
|
||||
const char* tmp = fmt("%" PRId64, v);
|
||||
return WriteElem(tag, "int64", tmp, strlen(tmp));
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue