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/mkmakefile.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/mkmakefile.c')
-rw-r--r-- | usr.sbin/config/mkmakefile.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/usr.sbin/config/mkmakefile.c b/usr.sbin/config/mkmakefile.c index 24768ed..b7700d4 100644 --- a/usr.sbin/config/mkmakefile.c +++ b/usr.sbin/config/mkmakefile.c @@ -77,7 +77,7 @@ static void do_rules(FILE *); static void do_xxfiles(char *, FILE *); static void do_objs(FILE *); static void do_before_depend(FILE *); -static int opteq(char *, char *); +static int opteq(const char *, const char *); static void read_files(void); /* @@ -281,7 +281,7 @@ read_files(void) struct device *dp; struct device *save_dp; struct opt *op; - char *wd, *this, *needs, *special, *depends, *clean, *warn; + char *wd, *this, *needs, *special, *depends, *clean, *warning; char fname[MAXPATHLEN]; int ddwarned = 0; int nreqs, first = 1, configdep, isdup, std, filetype, @@ -364,7 +364,7 @@ next: special = 0; depends = 0; clean = 0; - warn = 0; + warning = 0; configdep = 0; needs = 0; std = mandatory = 0; @@ -451,7 +451,7 @@ nextparam: fname, this); exit(1); } - warn = ns(wd); + warning = ns(wd); goto nextparam; } nreqs++; @@ -519,7 +519,7 @@ invis: tp->f_special = special; tp->f_depends = depends; tp->f_clean = clean; - tp->f_warn = warn; + tp->f_warn = warning; goto next; doneparam: @@ -559,14 +559,14 @@ doneparam: tp->f_special = special; tp->f_depends = depends; tp->f_clean = clean; - tp->f_warn = warn; + tp->f_warn = warning; if (pf && pf->f_type == INVISIBLE) pf->f_flags |= ISDUP; /* mark as duplicate */ goto next; } static int -opteq(char *cp, char *dp) +opteq(const char *cp, const char *dp) { char c, d; @@ -725,7 +725,7 @@ do_rules(FILE *f) tp = tail(np); special = ftp->f_special; if (special == 0) { - char *ftype = NULL; + const char *ftype = NULL; static char cmd[128]; switch (ftp->f_type) { |