Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib/libc/gen Unwrap a line that wasn't >80 characters long b...
details: https://anonhg.NetBSD.org/src/rev/457cc9da1344
branches: trunk
changeset: 514993:457cc9da1344
user: simonb <simonb%NetBSD.org@localhost>
date: Sat Sep 15 15:43:40 2001 +0000
description:
Unwrap a line that wasn't >80 characters long before it was wrapped.
diffstat:
lib/libc/gen/dirname.c | 7 +++----
1 files changed, 3 insertions(+), 4 deletions(-)
diffs (28 lines):
diff -r 3566e9e9e1a3 -r 457cc9da1344 lib/libc/gen/dirname.c
--- a/lib/libc/gen/dirname.c Sat Sep 15 15:27:59 2001 +0000
+++ b/lib/libc/gen/dirname.c Sat Sep 15 15:43:40 2001 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: dirname.c,v 1.2 2000/01/22 22:19:09 mycroft Exp $ */
+/* $NetBSD: dirname.c,v 1.3 2001/09/15 15:43:40 simonb Exp $ */
/*-
* Copyright (c) 1997 The NetBSD Foundation, Inc.
@@ -38,7 +38,7 @@
#include <sys/cdefs.h>
#if defined(LIBC_SCCS) && !defined(lint)
-__RCSID("$NetBSD: dirname.c,v 1.2 2000/01/22 22:19:09 mycroft Exp $");
+__RCSID("$NetBSD: dirname.c,v 1.3 2001/09/15 15:43:40 simonb Exp $");
#endif /* !LIBC_SCCS && !lint */
#include "namespace.h"
@@ -61,8 +61,7 @@
* If `path' is a null pointer or points to an empty string, or does
* not contain a '/', return a pointer to the string ".".
*/
- if ((path == NULL) || (*path == '\0') ||
- (strchr(path, '/') == NULL))
+ if ((path == NULL) || (*path == '\0') || (strchr(path, '/') == NULL))
return (singledot);
/* Strip trailing slashes, if any. */
Home |
Main Index |
Thread Index |
Old Index