diff options
Diffstat (limited to 'epan/wslua/wslua_file.c')
-rw-r--r-- | epan/wslua/wslua_file.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/epan/wslua/wslua_file.c b/epan/wslua/wslua_file.c index 06b5a89c63..4c43a95a2f 100644 --- a/epan/wslua/wslua_file.c +++ b/epan/wslua/wslua_file.c @@ -17,7 +17,6 @@ #include <errno.h> #include <wiretap/file_wrappers.h> -#include <wsutil/ws_printf.h> /* ws_g_warning */ #define MAX_LINE_LENGTH 65536 @@ -278,12 +277,12 @@ WSLUA_METHOD File_read(lua_State* L) { /* shiftFile() doesn't verify things like expired */ if (f->expired) { - ws_g_warning("Error in File read: Lua File has expired"); + g_warning("Error in File read: Lua File has expired"); return 0; } if (!file_is_reader(f)) { - ws_g_warning("Error in File read: this File object instance is for writing only"); + g_warning("Error in File read: this File object instance is for writing only"); return 0; } @@ -400,7 +399,7 @@ WSLUA_METHOD File_lines(lua_State* L) { return luaL_error(L, "Error getting File handle for lines"); if (!file_is_reader(f)) { - ws_g_warning("Error in File read: this File object instance is for writing only"); + g_warning("Error in File read: this File object instance is for writing only"); return 0; } @@ -422,7 +421,7 @@ WSLUA_METHOD File_write(lua_State* L) { int err = 0; if (!f->wdh) { - ws_g_warning("Error in File read: this File object instance is for reading only"); + g_warning("Error in File read: this File object instance is for reading only"); return 0; } |