PR/6174: ITOH Yasufumi: Purify bug and a compile error in utility code.
This commit is contained in:
parent
1e2aeb4a35
commit
aed39ca72c
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: parse.c,v 1.38 1998/08/06 13:42:22 christos Exp $ */
|
||||
/* $NetBSD: parse.c,v 1.39 1998/09/18 20:15:36 christos Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1988, 1989, 1990, 1993
|
||||
@ -39,14 +39,14 @@
|
||||
*/
|
||||
|
||||
#ifdef MAKE_BOOTSTRAP
|
||||
static char rcsid[] = "$NetBSD: parse.c,v 1.38 1998/08/06 13:42:22 christos Exp $";
|
||||
static char rcsid[] = "$NetBSD: parse.c,v 1.39 1998/09/18 20:15:36 christos Exp $";
|
||||
#else
|
||||
#include <sys/cdefs.h>
|
||||
#ifndef lint
|
||||
#if 0
|
||||
static char sccsid[] = "@(#)parse.c 8.3 (Berkeley) 3/19/94";
|
||||
#else
|
||||
__RCSID("$NetBSD: parse.c,v 1.38 1998/08/06 13:42:22 christos Exp $");
|
||||
__RCSID("$NetBSD: parse.c,v 1.39 1998/09/18 20:15:36 christos Exp $");
|
||||
#endif
|
||||
#endif /* not lint */
|
||||
#endif
|
||||
@ -1486,9 +1486,8 @@ Parse_DoVar (line, ctxt)
|
||||
|
||||
default:
|
||||
#ifdef SUNSHCMD
|
||||
while (*opc != ':')
|
||||
if (--opc < line)
|
||||
break;
|
||||
while (opc > line && *opc != ':')
|
||||
opc--;
|
||||
|
||||
if (strncmp(opc, ":sh", 3) == 0) {
|
||||
type = VAR_SHELL;
|
||||
|
@ -1,15 +1,15 @@
|
||||
/* $NetBSD: util.c,v 1.16 1998/02/04 14:47:40 christos Exp $ */
|
||||
/* $NetBSD: util.c,v 1.17 1998/09/18 20:15:36 christos Exp $ */
|
||||
|
||||
/*
|
||||
* Missing stuff from OS's
|
||||
*/
|
||||
|
||||
#ifdef MAKE_BOOTSTRAP
|
||||
static char rcsid[] = "$NetBSD: util.c,v 1.16 1998/02/04 14:47:40 christos Exp $";
|
||||
static char rcsid[] = "$NetBSD: util.c,v 1.17 1998/09/18 20:15:36 christos Exp $";
|
||||
#else
|
||||
#include <sys/cdefs.h>
|
||||
#ifndef lint
|
||||
__RCSID("$NetBSD: util.c,v 1.16 1998/02/04 14:47:40 christos Exp $");
|
||||
__RCSID("$NetBSD: util.c,v 1.17 1998/09/18 20:15:36 christos Exp $");
|
||||
#endif
|
||||
#endif
|
||||
|
||||
@ -437,7 +437,7 @@ strftime(buf, len, fmt, tm)
|
||||
const char *fmt;
|
||||
struct tm *tm;
|
||||
{
|
||||
static char months[] = {
|
||||
static char months[][4] = {
|
||||
"Jan", "Feb", "Mar", "Apr", "May", "Jun",
|
||||
"Jul", "Aug", "Sep", "Oct", "Nov", "Dec"
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user