Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/lib/libc/gen KNF nit: opening brace of a function on next line.



details:   https://anonhg.NetBSD.org/src/rev/6a6011556952
branches:  trunk
changeset: 373092:6a6011556952
user:      simonb <simonb%NetBSD.org@localhost>
date:      Wed Jan 18 08:07:22 2023 +0000

description:
KNF nit: opening brace of a function on next line.

diffstat:

 lib/libc/gen/basename.c |  7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diffs (28 lines):

diff -r 0627c1909254 -r 6a6011556952 lib/libc/gen/basename.c
--- a/lib/libc/gen/basename.c   Tue Jan 17 21:35:19 2023 +0000
+++ b/lib/libc/gen/basename.c   Wed Jan 18 08:07:22 2023 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: basename.c,v 1.11 2014/07/16 10:52:26 christos Exp $   */
+/*     $NetBSD: basename.c,v 1.12 2023/01/18 08:07:22 simonb Exp $     */
 
 /*-
  * Copyright (c) 1997, 2002 The NetBSD Foundation, Inc.
@@ -31,7 +31,7 @@
 
 #include <sys/cdefs.h>
 #if defined(LIBC_SCCS) && !defined(lint)
-__RCSID("$NetBSD: basename.c,v 1.11 2014/07/16 10:52:26 christos Exp $");
+__RCSID("$NetBSD: basename.c,v 1.12 2023/01/18 08:07:22 simonb Exp $");
 #endif /* !LIBC_SCCS && !lint */
 
 #include "namespace.h"
@@ -91,7 +91,8 @@
 #if !HAVE_BASENAME
 
 char *
-basename(char *path) {
+basename(char *path)
+{
        static char result[PATH_MAX];
 
        (void)xbasename_r(path, result, sizeof(result));



Home | Main Index | Thread Index | Old Index