diff options
author | peter <peter@FreeBSD.org> | 2001-02-22 03:40:50 +0000 |
---|---|---|
committer | peter <peter@FreeBSD.org> | 2001-02-22 03:40:50 +0000 |
commit | c1f61844c36e418273555752390fe62cd6b3f3e2 (patch) | |
tree | 7169f7f4ade09e281e4b7287b5842ed199d17d66 /usr.sbin/config/mkoptions.c | |
parent | bfd047a3c936c2ea237d09f71e53f3b02aae1497 (diff) | |
download | FreeBSD-src-c1f61844c36e418273555752390fe62cd6b3f3e2.zip FreeBSD-src-c1f61844c36e418273555752390fe62cd6b3f3e2.tar.gz |
Collect together a handful of copies of the option generator code into a
single newopt(char *name, char *value) function. Change newdev() to
do the same thing rather than depending on the evil 'cur' device hack.
Diffstat (limited to 'usr.sbin/config/mkoptions.c')
-rw-r--r-- | usr.sbin/config/mkoptions.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/usr.sbin/config/mkoptions.c b/usr.sbin/config/mkoptions.c index 1b8b332..4cfa098 100644 --- a/usr.sbin/config/mkoptions.c +++ b/usr.sbin/config/mkoptions.c @@ -103,8 +103,8 @@ options(void) do_option(ol->o_name); for (op = opt; op; op = op->op_next) { if (!op->op_ownfile && strncmp(op->op_name, "DEV_", 4)) { - printf("%s:%d: unknown option \"%s\"\n", - PREFIX, op->op_line, op->op_name); + printf("%s: unknown option \"%s\"\n", + PREFIX, op->op_name); exit(1); } } @@ -141,8 +141,8 @@ do_option(char *name) value = ns("1"); if (oldvalue != NULL && !eq(value, oldvalue)) printf( - "%s:%d: option \"%s\" redefined from %s to %s\n", - PREFIX, op->op_line, op->op_name, oldvalue, + "%s: option \"%s\" redefined from %s to %s\n", + PREFIX, op->op_name, oldvalue, value); op->op_ownfile++; } |