mirror of
https://github.com/zeek/zeek.git
synced 2025-10-06 00:28:21 +00:00
Merge remote-tracking branch 'origin/topic/timw/nullptr'
* origin/topic/timw/nullptr: The remaining nulls plugin/probabilistic/zeekygen: Replace nulls with nullptr file_analysis: Replace nulls with nullptr analyzer: Replace nulls with nullptr iosource/threading/input/logging: Replace nulls with nullptr
This commit is contained in:
commit
a3a38f0849
187 changed files with 1119 additions and 1117 deletions
|
@ -161,7 +161,7 @@ protected:
|
|||
// A couple utility functions that may also be useful to derived analyzers.
|
||||
static uint64_t get_relative_seq(const TCP_Endpoint* endpoint,
|
||||
uint32_t cur_base, uint32_t last,
|
||||
uint32_t wraps, bool* underflow = 0);
|
||||
uint32_t wraps, bool* underflow = nullptr);
|
||||
|
||||
static int get_segment_len(int payload_len, TCP_Flags flags);
|
||||
|
||||
|
@ -192,12 +192,10 @@ private:
|
|||
class TCP_ApplicationAnalyzer : public analyzer::Analyzer {
|
||||
public:
|
||||
TCP_ApplicationAnalyzer(const char* name, Connection* conn)
|
||||
: Analyzer(name, conn)
|
||||
{ tcp = 0; }
|
||||
: Analyzer(name, conn), tcp(nullptr) { }
|
||||
|
||||
explicit TCP_ApplicationAnalyzer(Connection* conn)
|
||||
: Analyzer(conn)
|
||||
{ tcp = 0; }
|
||||
: Analyzer(conn), tcp(nullptr) { }
|
||||
|
||||
~TCP_ApplicationAnalyzer() override { }
|
||||
|
||||
|
@ -235,7 +233,7 @@ public:
|
|||
// This suppresses violations if the TCP connection wasn't
|
||||
// fully established.
|
||||
void ProtocolViolation(const char* reason,
|
||||
const char* data = 0, int len = 0) override;
|
||||
const char* data = nullptr, int len = 0) override;
|
||||
|
||||
// "name" and "val" both now belong to this object, which needs to
|
||||
// delete them when done with them.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue