summaryrefslogtreecommitdiffstats
path: root/release/sysinstall/attr.c
diff options
context:
space:
mode:
authorrgrimes <rgrimes@FreeBSD.org>1995-06-11 19:33:05 +0000
committerrgrimes <rgrimes@FreeBSD.org>1995-06-11 19:33:05 +0000
commit1b1ee5553889e207087539ddafa5dfd4e28bd585 (patch)
treeba998dfb4fcad03e00a5cbf58e2a0ad648bab6e6 /release/sysinstall/attr.c
parentb1a97daa1e06ab0de3071f979965878fd056292b (diff)
downloadFreeBSD-src-1b1ee5553889e207087539ddafa5dfd4e28bd585.zip
FreeBSD-src-1b1ee5553889e207087539ddafa5dfd4e28bd585.tar.gz
Merge RELENG_2_0_5 into HEAD
Diffstat (limited to 'release/sysinstall/attr.c')
-rw-r--r--release/sysinstall/attr.c18
1 files changed, 15 insertions, 3 deletions
diff --git a/release/sysinstall/attr.c b/release/sysinstall/attr.c
index 5cd7f50..9f3b246 100644
--- a/release/sysinstall/attr.c
+++ b/release/sysinstall/attr.c
@@ -4,7 +4,7 @@
* This is probably the last attempt in the `sysinstall' line, the next
* generation being slated to essentially a complete rewrite.
*
- * $Id: attr.c,v 1.1 1995/05/27 10:38:41 jkh Exp $
+ * $Id: attr.c,v 1.2.2.4 1995/06/06 00:44:51 jkh Exp $
*
* Copyright (c) 1995
* Jordan Hubbard. All rights reserved.
@@ -157,11 +157,23 @@ attr_match(Attribs *attr, char *name)
{
int n = 0;
- while((strcasecmp(attr[n].name, name)!=0) && (n < num_attribs) && (n < 20))
+ if (isDebug())
+ msgDebug("Trying to match attribute `%s'\n", name);
+
+ while ((n < num_attribs) && (strcasecmp(attr[n].name, name) != 0)) {
+ if (isDebug())
+ msgDebug("Skipping attribute %u\n", n);
n++;
+ }
- if (strcasecmp(attr[n].name, name)==0)
+ if (isDebug())
+ msgDebug("Stopped on attribute %u\n", n);
+
+ if (n < num_attribs) {
+ if (isDebug())
+ msgDebug("Returning `%s'\n", attr[n].value);
return((const char *) attr[n].value);
+ }
return NULL;
}
OpenPOWER on IntegriCloud