summaryrefslogtreecommitdiff
path: root/source4/build/smb_build/config_mk.pm
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2004-11-12 02:00:58 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:05:45 -0500
commita20b130b5f275a264cfdd59adcb25987fba97fc2 (patch)
treeba41300636f3705c4e75aeb5e7a0faddbc726e89 /source4/build/smb_build/config_mk.pm
parentab440ac6f75c12989d5dc15cc75a99e62f35612f (diff)
downloadsamba-a20b130b5f275a264cfdd59adcb25987fba97fc2.tar.gz
samba-a20b130b5f275a264cfdd59adcb25987fba97fc2.tar.bz2
samba-a20b130b5f275a264cfdd59adcb25987fba97fc2.zip
r3691: Use packages
(This used to be commit 975f06b626a3cc25e69bbe95dcfa04dc78e3dc92)
Diffstat (limited to 'source4/build/smb_build/config_mk.pm')
-rw-r--r--source4/build/smb_build/config_mk.pm13
1 files changed, 9 insertions, 4 deletions
diff --git a/source4/build/smb_build/config_mk.pm b/source4/build/smb_build/config_mk.pm
index eaf7079352..f852e345ac 100644
--- a/source4/build/smb_build/config_mk.pm
+++ b/source4/build/smb_build/config_mk.pm
@@ -6,6 +6,11 @@
### Released under the GNU GPL ###
###########################################################
+package config_mk;
+use input;
+
+use strict;
+
###########################################################
# The parsing function which parses the file
#
@@ -188,9 +193,9 @@ sub _fetch_var_from_config_mk($$$)
}
if (defined($result->{$section}{$key})) {
- $val = strtrim($result->{$section}{$key}{VAL});
+ $val = input::strtrim($result->{$section}{$key}{VAL});
} elsif (defined($result->{DEFAULT}{$key})) {
- $val = strtrim($result->{DEFAULT}{$key}{VAL});
+ $val = input::strtrim($result->{DEFAULT}{$key}{VAL});
}
return $val;
@@ -225,9 +230,9 @@ sub _fetch_array_from_config_mk($$$)
}
if (defined($result->{$section}{$key})) {
- @val = str2array($result->{$section}{$key}{VAL});
+ @val = input::str2array($result->{$section}{$key}{VAL});
} elsif (defined($result->{DEFAULT}{$key})) {
- @val = str2array($result->{DEFAULT}{$key}{VAL});
+ @val = input::str2array($result->{DEFAULT}{$key}{VAL});
}
return @val;