From 039043dce270c730cd0880b30f18fd0665a8d5f9 Mon Sep 17 00:00:00 2001 From: Olivier Blin Date: Tue, 3 Jan 2006 17:21:06 +0000 Subject: bless directly the wizard object instead of wrapping it in a hash --- dhcp_wizard/Dhcp.pm | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'dhcp_wizard') diff --git a/dhcp_wizard/Dhcp.pm b/dhcp_wizard/Dhcp.pm index 7b8f3665..63e5b09a 100755 --- a/dhcp_wizard/Dhcp.pm +++ b/dhcp_wizard/Dhcp.pm @@ -275,10 +275,8 @@ mask = $wiz_ip_netmask, rng1 = $wiz_ip_range1, rng2 = $wiz_ip_range2, dname = $w } sub new { - my ($class, $conf) = @_; - bless { - o => $o, - }, $class; + my ($class) = @_; + bless $o, $class; } 1; -- cgit v1.2.1