diff options
author | peter <peter@FreeBSD.org> | 2001-02-19 04:43:21 +0000 |
---|---|---|
committer | peter <peter@FreeBSD.org> | 2001-02-19 04:43:21 +0000 |
commit | b96d955fcac9315b51bd01025be303eabf0cdfc6 (patch) | |
tree | c40bcee409cdb724826174fb503e72be95d9626e /usr.sbin/config/mkoptions.c | |
parent | 49ef1aaa13c43ce23bf5d856364d1178c713f50c (diff) | |
download | FreeBSD-src-b96d955fcac9315b51bd01025be303eabf0cdfc6.zip FreeBSD-src-b96d955fcac9315b51bd01025be303eabf0cdfc6.tar.gz |
${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.
Diffstat (limited to 'usr.sbin/config/mkoptions.c')
-rw-r--r-- | usr.sbin/config/mkoptions.c | 5 |
1 files changed, 3 insertions, 2 deletions
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; |