diff options
author | peter <peter@FreeBSD.org> | 1999-04-18 13:36:29 +0000 |
---|---|---|
committer | peter <peter@FreeBSD.org> | 1999-04-18 13:36:29 +0000 |
commit | e0200a9fdea9ada7eb6f9af2ac7b63fcf5112e61 (patch) | |
tree | ccd7a5789ca34e7c46920f962ce52077a7c1d1c6 /usr.sbin/config/mkmakefile.c | |
parent | 219dec9bd389788fb4eb631f353e772a61532626 (diff) | |
download | FreeBSD-src-e0200a9fdea9ada7eb6f9af2ac7b63fcf5112e61.zip FreeBSD-src-e0200a9fdea9ada7eb6f9af2ac7b63fcf5112e61.tar.gz |
Further cleanups. i386_ioconf.c and alpha_ioconf.c were essentially the
same and were merged into a single newbus_ioconf.c. CG'd some more unused
code.
Diffstat (limited to 'usr.sbin/config/mkmakefile.c')
-rw-r--r-- | usr.sbin/config/mkmakefile.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/usr.sbin/config/mkmakefile.c b/usr.sbin/config/mkmakefile.c index cb7a300..d654f92 100644 --- a/usr.sbin/config/mkmakefile.c +++ b/usr.sbin/config/mkmakefile.c @@ -36,7 +36,7 @@ static char sccsid[] = "@(#)mkmakefile.c 8.1 (Berkeley) 6/6/93"; #endif static const char rcsid[] = - "$Id: mkmakefile.c,v 1.37 1999/04/13 18:22:57 peter Exp $"; + "$Id: mkmakefile.c,v 1.38 1999/04/17 14:41:40 peter Exp $"; #endif /* not lint */ /* @@ -71,7 +71,6 @@ static const char rcsid[] = #define ns(s) strdup(s) static struct file_list *fcur; -extern int old_config_present; static char *tail __P((char *)); static void do_swapspec __P((FILE *, char *)); @@ -86,7 +85,6 @@ static void do_before_depend __P((FILE *)); static struct file_list *do_systemspec __P((FILE *, struct file_list *, int)); static int opteq __P((char *, char *)); static void read_files __P((void)); -void makefile __P((void)); /* * Lookup a file, by name. @@ -263,6 +261,7 @@ read_files() imp_rule, no_obj, before_depend, mandatory; ftab = 0; + save_dp = NULL; (void) snprintf(fname, sizeof fname, "../../conf/files"); openit: fp = fopen(fname, "r"); @@ -475,7 +474,6 @@ doneparam: exit(1); } -save: if (wd) { printf("%s: syntax error describing %s\n", fname, this); @@ -742,7 +740,7 @@ do_rules(f) tp = tail(np); special = ftp->f_special; if (special == 0) { - char *ftype; + char *ftype = NULL; static char cmd[128]; switch (ftp->f_type) { |