mirror of
https://github.com/zeek/zeek.git
synced 2025-10-04 15:48:19 +00:00
Fixing compiler warnings (addresses #388)
This commit is contained in:
parent
c2683afc01
commit
cec4600d2e
15 changed files with 54 additions and 53 deletions
|
@ -74,11 +74,11 @@ void File_Analyzer::InitMagic(magic_t* magic, int flags)
|
|||
*magic = magic_open(flags);
|
||||
|
||||
if ( ! *magic )
|
||||
reporter->Error(fmt("can't init libmagic: %s", magic_error(*magic)));
|
||||
reporter->Error("%s", fmt("can't init libmagic: %s", magic_error(*magic)));
|
||||
|
||||
else if ( magic_load(*magic, 0) < 0 )
|
||||
{
|
||||
reporter->Error(fmt("can't load magic file: %s", magic_error(*magic)));
|
||||
reporter->Error("%s", fmt("can't load magic file: %s", magic_error(*magic)));
|
||||
magic_close(*magic);
|
||||
*magic = 0;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue