Skip to content

Commit ba66751

Browse files
committed
Don't need to pass in lua interface
1 parent f0a2a86 commit ba66751

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

source/socket.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
extern "C" int luaopen_socket_core( lua_State *state );
44

5-
int parseWhitelist(GarrysMod::Lua::ILuaBase* LUA);
5+
int parseWhitelist();
66
enum : int
77
{
88
PARSE_SUCCESS = 0,
@@ -13,7 +13,7 @@ enum : int
1313
GMOD_MODULE_OPEN( )
1414
{
1515
#ifdef USE_WHITELIST
16-
switch (parseWhitelist(LUA))
16+
switch (parseWhitelist())
1717
{
1818
case PARSE_SUCCESS:
1919
break;

source/whitelist.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
#undef getaddrinfo
22

3-
#include <GarrysMod/Lua/Interface.h>
4-
53
#include "socket.h"
64
#include <vector>
75
#include <fstream>
@@ -19,7 +17,7 @@ enum : int
1917
PARSE_NO_ENTRIES = 2
2018
};
2119

22-
int parseWhitelist(GarrysMod::Lua::ILuaBase* LUA)
20+
int parseWhitelist()
2321
{
2422
std::ifstream input(whitelistDir);
2523
if (input)

0 commit comments

Comments
 (0)