From 6f4833870c8de9fbcc0fa96f87c783fa9e280b5e Mon Sep 17 00:00:00 2001 From: Tobi Oetiker Date: Thu, 24 Jul 2008 17:36:57 +0000 Subject: * added strict and warnings to the cgi and the daemon wrappers ... * fixed regression introduced while fixing taint issues --- bin/smokeping.dist | 7 ++++--- bin/tSmoke.dist | 3 ++- 2 files changed, 6 insertions(+), 4 deletions(-) (limited to 'bin') diff --git a/bin/smokeping.dist b/bin/smokeping.dist index 148a880..711580b 100755 --- a/bin/smokeping.dist +++ b/bin/smokeping.dist @@ -1,9 +1,10 @@ -#!/usr/sepp/bin/perl-5.8.4 -w +#!/usr/bin/perl -w # -*-perl-*- -use lib qw(/usr/pack/rrdtool-1.2.23-mo/lib/perl); +use lib qw(/usr/pack/rrdtool-1.3.0-rp/lib/perl); use lib qw(lib); - +use strict; +use warnings; use Smokeping 2.004000; Smokeping::main("etc/config.dist"); diff --git a/bin/tSmoke.dist b/bin/tSmoke.dist index cf876f8..d4612d2 100755 --- a/bin/tSmoke.dist +++ b/bin/tSmoke.dist @@ -43,6 +43,7 @@ # Tobias Oetiker, or course, the author of Smokeping, RRDTool and MRTG # use strict; +use warnings; # We need to use # -- Smokeping libraries @@ -51,7 +52,7 @@ use strict; # # Point the lib variables to your implementation use lib qw(lib); -use lib "/usr/local/rrdtool-1.0.39/lib/perl"; +use lib qw(/usr/local/rrdtool-1.0.39/lib/perl); use Smokeping 2.004000; use Net::SMTP; -- cgit v1.2.3-24-g4f1b