Source-Changes-HG archive

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

[src/trunk]: src/usr.bin/make make(1): remove unnecessary struct tag



details:   https://anonhg.NetBSD.org/src/rev/ff017d3e1125
branches:  trunk
changeset: 936519:ff017d3e1125
user:      rillig <rillig%NetBSD.org@localhost>
date:      Tue Jul 28 16:45:56 2020 +0000

description:
make(1): remove unnecessary struct tag

Identifiers starting with an underscore and an uppercase letter are
reserved for the C implementation.

diffstat:

 usr.bin/make/for.c |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (35 lines):

diff -r e3c8774cafbb -r ff017d3e1125 usr.bin/make/for.c
--- a/usr.bin/make/for.c        Tue Jul 28 16:42:22 2020 +0000
+++ b/usr.bin/make/for.c        Tue Jul 28 16:45:56 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: for.c,v 1.56 2020/07/28 16:42:22 rillig Exp $  */
+/*     $NetBSD: for.c,v 1.57 2020/07/28 16:45:56 rillig Exp $  */
 
 /*
  * Copyright (c) 1992, The Regents of the University of California.
@@ -30,14 +30,14 @@
  */
 
 #ifndef MAKE_NATIVE
-static char rcsid[] = "$NetBSD: for.c,v 1.56 2020/07/28 16:42:22 rillig Exp $";
+static char rcsid[] = "$NetBSD: for.c,v 1.57 2020/07/28 16:45:56 rillig Exp $";
 #else
 #include <sys/cdefs.h>
 #ifndef lint
 #if 0
 static char sccsid[] = "@(#)for.c      8.1 (Berkeley) 6/6/93";
 #else
-__RCSID("$NetBSD: for.c,v 1.56 2020/07/28 16:42:22 rillig Exp $");
+__RCSID("$NetBSD: for.c,v 1.57 2020/07/28 16:45:56 rillig Exp $");
 #endif
 #endif /* not lint */
 #endif
@@ -88,7 +88,7 @@
 /*
  * State of a for loop.
  */
-typedef struct _For {
+typedef struct {
     Buffer       buf;                  /* Body of loop         */
     strlist_t     vars;                        /* Iteration variables  */
     strlist_t     items;               /* Substitution items */



Home | Main Index | Thread Index | Old Index