From e0d50fcc2a87b21978a6b3320e7236a2140b3faf Mon Sep 17 00:00:00 2001 From: Thomas Bushnell Date: Mon, 14 Apr 1997 18:35:44 +0000 Subject: Mon Mar 17 13:12:45 1997 Thomas Bushnell, n/BSG * boot_script.c (boot_script_parse_line): Don't print gratuitous output noise. --- boot/boot_script.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'boot/boot_script.c') diff --git a/boot/boot_script.c b/boot/boot_script.c index 618830f2..75b01633 100644 --- a/boot/boot_script.c +++ b/boot/boot_script.c @@ -285,13 +285,18 @@ boot_script_parse_line (char *cmdline) /* Ignore comment line. */ return 0; +#if 0 if (*p && *p != ' ' && *p != '\t' && *p != '\n') - printf ("(bootstrap): %s\n", cmdline); + { + printf ("(bootstrap): %s\n", cmdline); + } +#endif for (q = p; *q && *q != ' ' && *q != '\t' && *q != '\n'; q++) ; if (p == q) - return 0; + return 0; + *q = '\0'; /* Allocate a command structure. */ @@ -490,6 +495,7 @@ boot_script_parse_line (char *cmdline) } } } + bad: free_cmd (cmd, 1); -- cgit v1.2.3