From 20cadd41ca926b233e0ff5ee2e11a8fb2e5e1fb5 Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Tue, 11 Aug 2009 14:20:57 +0000 Subject: [PATCH] libs/iwinfo: make lua wrapper functions static --- libs/iwinfo/src/iwinfo_lualib.c | 4 ++-- libs/iwinfo/src/iwinfo_lualib.h | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/libs/iwinfo/src/iwinfo_lualib.c b/libs/iwinfo/src/iwinfo_lualib.c index 66c735bb1..33254637a 100644 --- a/libs/iwinfo/src/iwinfo_lualib.c +++ b/libs/iwinfo/src/iwinfo_lualib.c @@ -19,7 +19,7 @@ #include "iwinfo_lualib.h" /* Determine type */ -int iwinfo_L_type(lua_State *L) +static int iwinfo_L_type(lua_State *L) { const char *ifname = luaL_checkstring(L, 1); @@ -39,7 +39,7 @@ int iwinfo_L_type(lua_State *L) } /* Wrapper for assoclist */ -int iwinfo_L_assoclist(lua_State *L, int (*func)(const char *, char *, int *)) +static int iwinfo_L_assoclist(lua_State *L, int (*func)(const char *, char *, int *)) { int i, len; char rv[IWINFO_BUFSIZE]; diff --git a/libs/iwinfo/src/iwinfo_lualib.h b/libs/iwinfo/src/iwinfo_lualib.h index 9840466f0..ca1a4421c 100644 --- a/libs/iwinfo/src/iwinfo_lualib.h +++ b/libs/iwinfo/src/iwinfo_lualib.h @@ -35,7 +35,7 @@ { #op, iwinfo_L_##type##_##op } #define LUA_WRAP_INT(type,op) \ - int iwinfo_L_##type##_##op(lua_State *L) \ + static int iwinfo_L_##type##_##op(lua_State *L) \ { \ const char *ifname = luaL_checkstring(L, 1); \ int rv; \ @@ -47,7 +47,7 @@ } #define LUA_WRAP_STRING(type,op) \ - int iwinfo_L_##type##_##op(lua_State *L) \ + static int iwinfo_L_##type##_##op(lua_State *L) \ { \ const char *ifname = luaL_checkstring(L, 1); \ char rv[IWINFO_BUFSIZE]; \ @@ -60,7 +60,7 @@ } #define LUA_WRAP_ASSOCLIST(type) \ - int iwinfo_L_##type##_assoclist(lua_State *L) \ + static int iwinfo_L_##type##_assoclist(lua_State *L)\ { \ return iwinfo_L_assoclist(L, \ type##_get_assoclist); \ -- 2.25.1