From b96d955fcac9315b51bd01025be303eabf0cdfc6 Mon Sep 17 00:00:00 2001 From: peter Date: Mon, 19 Feb 2001 04:43:21 +0000 Subject: ${BDECFLAGS} work. And fix a real error in the process. A "MAXUSERS" string could have been passed to free(); There are some warnings here I am not sure how to fix as they are in the lex scanner code, etc. --- usr.sbin/config/mkoptions.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'usr.sbin/config/mkoptions.c') diff --git a/usr.sbin/config/mkoptions.c b/usr.sbin/config/mkoptions.c index 5ff8c54..1b8b332 100644 --- a/usr.sbin/config/mkoptions.c +++ b/usr.sbin/config/mkoptions.c @@ -92,7 +92,7 @@ options(void) /* Fake MAXUSERS as an option. */ op = (struct opt *)malloc(sizeof(*op)); memset(op, 0, sizeof(*op)); - op->op_name = "MAXUSERS"; + op->op_name = ns("MAXUSERS"); snprintf(buf, sizeof(buf), "%d", maxusers); op->op_value = ns(buf); op->op_next = opt; @@ -117,7 +117,8 @@ options(void) static void do_option(char *name) { - char *basefile, *file, *inw; + char *file, *inw; + const char *basefile; struct opt_list *ol; struct opt *op, *op_head, *topp; FILE *inf, *outf; -- cgit v1.1