aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin
diff options
context:
space:
mode:
authorJordan K. Hubbard <jkh@FreeBSD.org>2000-02-26 11:57:22 +0000
committerJordan K. Hubbard <jkh@FreeBSD.org>2000-02-26 11:57:22 +0000
commit2150746365eb60fc1e488bcf1fa9ed4529421073 (patch)
tree39df648e02cff3fd84a55e886dd2108530fb9bfa /usr.sbin
parent49838bb95b877ed4af8e767d1a42b47f66782f50 (diff)
downloadsrc-2150746365eb60fc1e488bcf1fa9ed4529421073.tar.gz
src-2150746365eb60fc1e488bcf1fa9ed4529421073.zip
Clean up some of the abstraction in this code.
Notes
Notes: svn path=/head/; revision=57500
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/sade/variable.c4
-rw-r--r--usr.sbin/sysinstall/variable.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/usr.sbin/sade/variable.c b/usr.sbin/sade/variable.c
index 1e2bf9a54845..bae7bc2e4103 100644
--- a/usr.sbin/sade/variable.c
+++ b/usr.sbin/sade/variable.c
@@ -188,7 +188,7 @@ variable_check(char *data)
}
else if ((cp3 = index(cp, ',')) != NULL)
*cp3 = '\0';
- cp2 = getenv(tmp);
+ cp2 = variable_get(tmp);
if (cp2) {
if (!*cp)
return TRUE;
@@ -199,7 +199,7 @@ variable_check(char *data)
return FALSE;
}
else
- return getenv(tmp) ? TRUE : FALSE;
+ return variable_get(tmp) ? TRUE : FALSE;
}
int
diff --git a/usr.sbin/sysinstall/variable.c b/usr.sbin/sysinstall/variable.c
index 1e2bf9a54845..bae7bc2e4103 100644
--- a/usr.sbin/sysinstall/variable.c
+++ b/usr.sbin/sysinstall/variable.c
@@ -188,7 +188,7 @@ variable_check(char *data)
}
else if ((cp3 = index(cp, ',')) != NULL)
*cp3 = '\0';
- cp2 = getenv(tmp);
+ cp2 = variable_get(tmp);
if (cp2) {
if (!*cp)
return TRUE;
@@ -199,7 +199,7 @@ variable_check(char *data)
return FALSE;
}
else
- return getenv(tmp) ? TRUE : FALSE;
+ return variable_get(tmp) ? TRUE : FALSE;
}
int