Skip to content

Commit

Permalink
Fixed compilation errors on Linux and macOS
Browse files Browse the repository at this point in the history
  • Loading branch information
danielga committed Apr 2, 2021
1 parent 9763784 commit a7f8c94
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions source/netfilter/client.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@

namespace netfilter
{
Client::Client( ClientManager &manager, uint32_t address ) :
manager( manager ), address( address ), last_reset( 0 ), count( 0 )
Client::Client( ClientManager &_manager, uint32_t _address ) :
manager( _manager ), address( _address ), last_reset( 0 ), count( 0 )
{ }

Client::Client( ClientManager &manager, uint32_t address, uint32_t time ) :
manager( manager ), address( address ), last_reset( time ), count( 1 )
Client::Client( ClientManager &_manager, uint32_t _address, uint32_t time ) :
manager( _manager ), address( _address ), last_reset( time ), count( 1 )
{ }

bool Client::CheckIPRate( uint32_t time )
Expand Down
2 changes: 1 addition & 1 deletion source/netfilter/core.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
#include <cstring>
#include <queue>
#include <string>
#include <unordered_map>

#if defined SYSTEM_WINDOWS

Expand All @@ -34,7 +35,6 @@
#include <Ws2tcpip.h>

#include <unordered_set>
#include <unordered_map>
#include <atomic>

typedef int32_t ssize_t;
Expand Down

0 comments on commit a7f8c94

Please sign in to comment.