Module Name:    src
Committed By:   rillig
Date:           Sat Mar 13 09:48:04 UTC 2021

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

Log Message:
indent: manually fix indentation in indent's own source code


To generate a diff of this commit:
cvs rdiff -u -r1.36 -r1.37 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.36 src/usr.bin/indent/io.c:1.37
--- src/usr.bin/indent/io.c:1.36	Sat Mar 13 09:21:57 2021
+++ src/usr.bin/indent/io.c	Sat Mar 13 09:48:04 2021
@@ -1,4 +1,4 @@
-/*	$NetBSD: io.c,v 1.36 2021/03/13 09:21:57 rillig Exp $	*/
+/*	$NetBSD: io.c,v 1.37 2021/03/13 09:48:04 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.36 2021/03/13 09:21:57 rillig Exp $");
+__RCSID("$NetBSD: io.c,v 1.37 2021/03/13 09:48:04 rillig Exp $");
 #elif defined(__FreeBSD__)
 __FBSDID("$FreeBSD: head/usr.bin/indent/io.c 334927 2018-06-10 16:44:18Z pstef $");
 #endif
@@ -357,15 +357,15 @@ fill_buffer(void)
 	    in_buffer_limit = in_buffer + size - 2;
 	}
 	if ((i = getc(f)) == EOF) {
-		*p++ = ' ';
-		*p++ = '\n';
-		had_eof = true;
-		break;
+	    *p++ = ' ';
+	    *p++ = '\n';
+	    had_eof = true;
+	    break;
 	}
 	if (i != '\0')
 	    *p++ = i;
 	if (i == '\n')
-		break;
+	    break;
     }
     buf_ptr = in_buffer;
     buf_end = p;
@@ -373,7 +373,7 @@ fill_buffer(void)
 	if (in_buffer[3] == 'I' && strncmp(in_buffer, "/**INDENT**", 11) == 0)
 	    fill_buffer();	/* flush indent error message */
 	else {
-	    int         com = 0;
+	    int com = 0;
 
 	    p = in_buffer;
 	    while (*p == ' ' || *p == '\t')

Reply via email to