Module Name:    src
Committed By:   rillig
Date:           Fri Mar 12 19:14:18 UTC 2021

Modified Files:
        src/usr.bin/indent: io.c

Log Message:
indent: make output_string inline

GCC 9.3.0 didn't notice that the argument to this function is always a
string literal, which makes it worthwhile to inline the call.


To generate a diff of this commit:
cvs rdiff -u -r1.28 -r1.29 src/usr.bin/indent/io.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/usr.bin/indent/io.c
diff -u src/usr.bin/indent/io.c:1.28 src/usr.bin/indent/io.c:1.29
--- src/usr.bin/indent/io.c:1.28	Fri Mar 12 19:11:29 2021
+++ src/usr.bin/indent/io.c	Fri Mar 12 19:14:18 2021
@@ -1,4 +1,4 @@
-/*	$NetBSD: io.c,v 1.28 2021/03/12 19:11:29 rillig Exp $	*/
+/*	$NetBSD: io.c,v 1.29 2021/03/12 19:14:18 rillig Exp $	*/
 
 /*-
  * SPDX-License-Identifier: BSD-4-Clause
@@ -46,7 +46,7 @@ static char sccsid[] = "@(#)io.c	8.1 (Be
 #include <sys/cdefs.h>
 #ifndef lint
 #if defined(__NetBSD__)
-__RCSID("$NetBSD: io.c,v 1.28 2021/03/12 19:11:29 rillig Exp $");
+__RCSID("$NetBSD: io.c,v 1.29 2021/03/12 19:14:18 rillig Exp $");
 #elif defined(__FreeBSD__)
 __FBSDID("$FreeBSD: head/usr.bin/indent/io.c 334927 2018-06-10 16:44:18Z pstef $");
 #endif
@@ -77,7 +77,7 @@ output_range(const char *s, const char *
     fwrite(s, 1, (size_t)(e - s), output);
 }
 
-static void
+static inline void
 output_string(const char *s)
 {
     output_range(s, s + strlen(s));

Reply via email to