diff options
author | jkh <jkh@FreeBSD.org> | 1997-10-12 16:21:21 +0000 |
---|---|---|
committer | jkh <jkh@FreeBSD.org> | 1997-10-12 16:21:21 +0000 |
commit | efc02b645339a7893a4d03dbc6e3964b407073ba (patch) | |
tree | 57ce6590609851e2fefa29ae94f96be90a801eb4 /usr.sbin/sade/variable.c | |
parent | f8166c26056e021527a33646876a912064a9c76b (diff) | |
download | FreeBSD-src-efc02b645339a7893a4d03dbc6e3964b407073ba.zip FreeBSD-src-efc02b645339a7893a4d03dbc6e3964b407073ba.tar.gz |
Separate the siamese twins that were the partition and label editor.
Now you can use one without entering the other and it will DTRT.
These changes just allowed me to do the most straight-forward new disk
installation I've ever managed with sysinstall.
Diffstat (limited to 'usr.sbin/sade/variable.c')
-rw-r--r-- | usr.sbin/sade/variable.c | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/usr.sbin/sade/variable.c b/usr.sbin/sade/variable.c index 0e31ae39..a13b71d 100644 --- a/usr.sbin/sade/variable.c +++ b/usr.sbin/sade/variable.c @@ -4,7 +4,7 @@ * This is probably the last program in the `sysinstall' line - the next * generation being essentially a complete rewrite. * - * $Id: variable.c,v 1.19 1997/06/11 08:41:10 jkh Exp $ + * $Id: variable.c,v 1.20 1997/06/13 14:21:22 jkh Exp $ * * Copyright (c) 1995 * Jordan Hubbard. All rights reserved. @@ -105,6 +105,16 @@ variable_get(char *var) return getenv(var); } +int +variable_cmp(char *var, char *value) +{ + char *val; + + if ((val = variable_get(var))) + return strcmp(val, value); + return -1; +} + void variable_unset(char *var) { |