braces for gcc-2.8.1
This commit is contained in:
parent
7d0129b726
commit
1452d0f916
@ -1,4 +1,4 @@
|
|||||||
/* $NetBSD: dir.c,v 1.14 1998/07/28 11:41:41 mycroft Exp $ */
|
/* $NetBSD: dir.c,v 1.15 1999/03/19 12:56:53 christos Exp $ */
|
||||||
|
|
||||||
/*-
|
/*-
|
||||||
* Copyright (c) 1980, 1991, 1993
|
* Copyright (c) 1980, 1991, 1993
|
||||||
@ -38,7 +38,7 @@
|
|||||||
#if 0
|
#if 0
|
||||||
static char sccsid[] = "@(#)dir.c 8.1 (Berkeley) 5/31/93";
|
static char sccsid[] = "@(#)dir.c 8.1 (Berkeley) 5/31/93";
|
||||||
#else
|
#else
|
||||||
__RCSID("$NetBSD: dir.c,v 1.14 1998/07/28 11:41:41 mycroft Exp $");
|
__RCSID("$NetBSD: dir.c,v 1.15 1999/03/19 12:56:53 christos Exp $");
|
||||||
#endif
|
#endif
|
||||||
#endif /* not lint */
|
#endif /* not lint */
|
||||||
|
|
||||||
@ -679,12 +679,12 @@ dcanon(cp, p)
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (*sp == '\0') /* if component is null */
|
if (*sp == '\0') { /* if component is null */
|
||||||
if (--sp == cp) /* if path is one char (i.e. /) */
|
if (--sp == cp) /* if path is one char (i.e. /) */
|
||||||
break;
|
break;
|
||||||
else
|
else
|
||||||
*sp = '\0';
|
*sp = '\0';
|
||||||
else if (sp[0] == '.' && sp[1] == 0) {
|
} else if (sp[0] == '.' && sp[1] == 0) {
|
||||||
if (slash) {
|
if (slash) {
|
||||||
for (p1 = sp, p2 = p + 1; (*p1++ = *p2++) != '\0';)
|
for (p1 = sp, p2 = p + 1; (*p1++ = *p2++) != '\0';)
|
||||||
continue;
|
continue;
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/* $NetBSD: gettemp.c,v 1.2 1998/07/27 16:05:07 mycroft Exp $ */
|
/* $NetBSD: gettemp.c,v 1.3 1999/03/19 12:56:16 christos Exp $ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 1987, 1993
|
* Copyright (c) 1987, 1993
|
||||||
@ -38,7 +38,7 @@
|
|||||||
#if 0
|
#if 0
|
||||||
static char sccsid[] = "@(#)mktemp.c 8.1 (Berkeley) 6/4/93";
|
static char sccsid[] = "@(#)mktemp.c 8.1 (Berkeley) 6/4/93";
|
||||||
#else
|
#else
|
||||||
__RCSID("$NetBSD: gettemp.c,v 1.2 1998/07/27 16:05:07 mycroft Exp $");
|
__RCSID("$NetBSD: gettemp.c,v 1.3 1999/03/19 12:56:16 christos Exp $");
|
||||||
#endif
|
#endif
|
||||||
#endif /* LIBC_SCCS and not lint */
|
#endif /* LIBC_SCCS and not lint */
|
||||||
|
|
||||||
@ -143,7 +143,7 @@ __gettemp(path, doopen, domkdir)
|
|||||||
if (*trv == 'z')
|
if (*trv == 'z')
|
||||||
*trv++ = 'a';
|
*trv++ = 'a';
|
||||||
else {
|
else {
|
||||||
if (isdigit(*trv))
|
if (isdigit((unsigned char)*trv))
|
||||||
*trv = 'a';
|
*trv = 'a';
|
||||||
else
|
else
|
||||||
++*trv;
|
++*trv;
|
||||||
|
Loading…
Reference in New Issue
Block a user