Subject: bin/13590: bin/echo to be in style
To: None <gnats-bugs@gnats.netbsd.org>
From: Petri Koistinen <thoron@mb-u04ip041.mbnet.fi>
List: netbsd-bugs
Date: 07/29/2001 21:29:18
>Number:         13590
>Category:       bin
>Synopsis:       bin/echo to be in style
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    bin-bug-people
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Sun Jul 29 11:25:00 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator:     Petri Koistinen
>Release:        NetBSD-current 29-Jul-2001
>Organization:
>Environment:
System: NetBSD mb-u04ip041.mbnet.fi 1.5W NetBSD 1.5W (MUURAHAISKEKO) #5: Sat Jul 21 08:56:11 EEST 2001 thoron@legoland:/usr/src/sys/arch/amiga/compile/MUURAHAISKEKO amiga
Architecture: m68k
Machine: amiga
>Description:
	Patch to make bin/echo look more stylistically correct.
>How-To-Repeat:
>Fix:
Index: echo.c
===================================================================
RCS file: /cvsroot/basesrc/bin/echo/echo.c,v
retrieving revision 1.8
diff -u -r1.8 echo.c
--- echo.c	1997/11/05 21:19:56	1.8
+++ echo.c	2001/07/29 18:21:03
@@ -1,4 +1,4 @@
-/*	$NetBSD: echo.c,v 1.8 1997/11/05 21:19:56 cgd Exp $	*/
+/* $NetBSD: echo.c,v 1.8 1997/11/05 21:19:56 cgd Exp $ */
 
 /*
  * Copyright (c) 1989, 1993
@@ -56,9 +56,7 @@
 
 /* ARGSUSED */
 int
-main(argc, argv)
-	int argc;
-	char *argv[];
+main(int argc, char *argv[])
 {
 	int nflag;
 
@@ -75,7 +73,7 @@
 		if (*++argv)
 			(void)putchar(' ');
 	}
-	if (!nflag)
+	if (nflag == 0)
 		(void)putchar('\n');
 	exit(0);
 	/* NOTREACHED */
>Release-Note:
>Audit-Trail:
>Unformatted: