From 9d6e75ae4f625cb5330b627b1777ef279e0344d9 Mon Sep 17 00:00:00 2001
From: Yukita Mayako <catgirl@goddess.moe>
Date: Thu, 3 Mar 2016 17:30:10 -0500
Subject: [PATCH] Cleanup LUAh_NetArchiveHook prototype mess.

---
 src/lua_hooklib.c | 2 --
 src/lua_script.c  | 2 --
 src/lua_script.h  | 1 +
 3 files changed, 1 insertion(+), 4 deletions(-)

diff --git a/src/lua_hooklib.c b/src/lua_hooklib.c
index 48c6df6d27..01d4314c85 100644
--- a/src/lua_hooklib.c
+++ b/src/lua_hooklib.c
@@ -24,8 +24,6 @@
 #include "lua_hook.h"
 #include "lua_hud.h" // hud_running errors
 
-void LUAh_NetArchiveHook(lua_CFunction archFunc);
-
 static UINT8 hooksAvailable[(hook_MAX/8)+1];
 
 const char *const hookNames[hook_MAX+1] = {
diff --git a/src/lua_script.c b/src/lua_script.c
index 2e076b024a..9925bac02e 100644
--- a/src/lua_script.c
+++ b/src/lua_script.c
@@ -915,8 +915,6 @@ static void UnArchiveTables(void)
 	}
 }
 
-void LUAh_NetArchiveHook(lua_CFunction archFunc);
-
 void LUA_Step(void)
 {
 	if (!gL)
diff --git a/src/lua_script.h b/src/lua_script.h
index 292160a0b5..ec67703c33 100644
--- a/src/lua_script.h
+++ b/src/lua_script.h
@@ -55,6 +55,7 @@ void Got_Luacmd(UINT8 **cp, INT32 playernum); // lua_consolelib.c
 void LUA_CVarChanged(const char *name); // lua_consolelib.c
 int Lua_optoption(lua_State *L, int narg,
 	const char *def, const char *const lst[]);
+void LUAh_NetArchiveHook(lua_CFunction archFunc);
 
 // Console wrapper
 void COM_Lua_f(void);
-- 
GitLab