diff options
Diffstat (limited to 'epan/wslua/wslua_file.c')
-rw-r--r-- | epan/wslua/wslua_file.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/epan/wslua/wslua_file.c b/epan/wslua/wslua_file.c index 3a1d472197..f85d472a2f 100644 --- a/epan/wslua/wslua_file.c +++ b/epan/wslua/wslua_file.c @@ -277,12 +277,12 @@ WSLUA_METHOD File_read(lua_State* L) { /* shiftFile() doesn't verify things like expired */ if (f->expired) { - g_warning("Error in File read: Lua File has expired"); + ws_warning("Error in File read: Lua File has expired"); return 0; } if (!file_is_reader(f)) { - g_warning("Error in File read: this File object instance is for writing only"); + ws_warning("Error in File read: this File object instance is for writing only"); return 0; } @@ -399,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)) { - g_warning("Error in File read: this File object instance is for writing only"); + ws_warning("Error in File read: this File object instance is for writing only"); return 0; } @@ -421,7 +421,7 @@ WSLUA_METHOD File_write(lua_State* L) { int err = 0; if (!f->wdh) { - g_warning("Error in File read: this File object instance is for reading only"); + ws_warning("Error in File read: this File object instance is for reading only"); return 0; } |