From 333aeb20abc623bb3badae4b09ca8a78bfa2360e Mon Sep 17 00:00:00 2001 From: Jacob Pipkin Date: Mon, 5 Nov 2012 04:05:26 -0600 Subject: get rid of prototype for config_write. all tests pass --- sboconfig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sboconfig b/sboconfig index f969cbd..cfa8921 100755 --- a/sboconfig +++ b/sboconfig @@ -105,7 +105,7 @@ if (exists $changes{SBO_HOME}) { # TODO: if multiple options are provided to this script, this sub should write # them all at once, instead of only a single one and having to call it once for # each option specified to the script. -sub config_write ($$) { +sub config_write { exists $_[1] or script_error 'config_write requires two arguments.'; my ($key, $val) = @_; if (! -d $conf_dir) { @@ -146,7 +146,7 @@ sub config_write ($$) { while (my ($key, $value) = each %changes) { say "Setting $key to $value..."; - config_write $key, $value or warn "Unable to write to $conf_file\n"; + config_write ($key, $value) or warn "Unable to write to $conf_file\n"; } exit 0; -- cgit v1.2.3