aboutsummaryrefslogtreecommitdiffstats
path: root/epan/wslua/template-init.lua
diff options
context:
space:
mode:
authorJaap Keuter <jaap.keuter@xs4all.nl>2008-04-25 19:04:52 +0000
committerJaap Keuter <jaap.keuter@xs4all.nl>2008-04-25 19:04:52 +0000
commitda005d4aaf7cb123256b6f355a18967c5864fa2e (patch)
tree2025c6d79d4d2fdc0cc46d2da80bf14a131ac56f /epan/wslua/template-init.lua
parenta923b5491c90bd15ec4a81d885b3a66e94b3f0c7 (diff)
From Márton Németh:
Cleanup ident of epan/wslua/init_wslua.c: use spaces instead of tabs. cleanup the ident of generator scripts and for template-init.lua Spaces used instead of tabs for indent. Removed spaces placed by generator script just before a newline. svn path=/trunk/; revision=25176
Diffstat (limited to 'epan/wslua/template-init.lua')
-rw-r--r--epan/wslua/template-init.lua8
1 files changed, 4 insertions, 4 deletions
diff --git a/epan/wslua/template-init.lua b/epan/wslua/template-init.lua
index ad40451b7f..2c66cb60d4 100644
--- a/epan/wslua/template-init.lua
+++ b/epan/wslua/template-init.lua
@@ -6,7 +6,7 @@
-- It can be used to load libraries, disable functions and more.
--
-- $Id$
---
+--
-- Wireshark - Network traffic analyzer
-- By Gerald Combs <gerald@wireshark.org>
-- Copyright 1998 Gerald Combs
@@ -36,8 +36,8 @@ run_user_scripts_when_superuser = false
-- disable potentialy harmful lua functions when running superuser
if running_superuser then
- local disabled_lib = {}
- setmetatable(disabled_lib,{ __index = function() error("this package has been disabled") end } );
+ local disabled_lib = {}
+ setmetatable(disabled_lib,{ __index = function() error("this package has been disabled") end } );
dofile = function() error("dofile has been disabled") end
loadfile = function() error("loadfile has been disabled") end
@@ -52,7 +52,7 @@ end
-- has been suppresed so that it yields an error.
-- have print() call info() instead.
if gui_enabled() then
- print = info
+ print = info
end
-- %WTAP_ENCAPS%