mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 14:48:21 +00:00
binpac: Fix a large number of clang-tidy warnings
This commit is contained in:
parent
4dc546f8c8
commit
31b65f70da
48 changed files with 231 additions and 193 deletions
|
@ -4,11 +4,11 @@
|
|||
|
||||
#include "binpac_bytestring.h"
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <cstdlib>
|
||||
|
||||
namespace binpac {
|
||||
|
||||
std::string std_string(bytestring const* s) { return std::string((const char*)s->begin(), (const char*)s->end()); }
|
||||
std::string std_string(bytestring const* s) { return {(const char*)s->begin(), (const char*)s->end()}; }
|
||||
|
||||
int bytestring_to_int(bytestring const* s) { return atoi((const char*)s->begin()); }
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue