Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.bin/printf NFC: More KNF (remove () around returned cons...
details: https://anonhg.NetBSD.org/src/rev/d69169256ff7
branches: trunk
changeset: 991669:d69169256ff7
user: kre <kre%NetBSD.org@localhost>
date: Wed Jul 25 15:35:27 2018 +0000
description:
NFC: More KNF (remove () around returned constants).
diffstat:
usr.bin/printf/printf.c | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
diffs (45 lines):
diff -r ca9af956108e -r d69169256ff7 usr.bin/printf/printf.c
--- a/usr.bin/printf/printf.c Wed Jul 25 14:42:50 2018 +0000
+++ b/usr.bin/printf/printf.c Wed Jul 25 15:35:27 2018 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: printf.c,v 1.41 2018/07/25 14:41:52 kre Exp $ */
+/* $NetBSD: printf.c,v 1.42 2018/07/25 15:35:27 kre Exp $ */
/*
* Copyright (c) 1989, 1993
@@ -41,7 +41,7 @@
#if 0
static char sccsid[] = "@(#)printf.c 8.2 (Berkeley) 3/22/95";
#else
-__RCSID("$NetBSD: printf.c,v 1.41 2018/07/25 14:41:52 kre Exp $");
+__RCSID("$NetBSD: printf.c,v 1.42 2018/07/25 15:35:27 kre Exp $");
#endif
#endif /* not lint */
@@ -210,7 +210,7 @@
ch = *fmt;
if (!ch) {
warnx("missing format character");
- return (1);
+ return 1;
}
/*
* null terminate format string to we can use it
@@ -619,7 +619,7 @@
s = *gargv;
if (!*gargv)
- return (0);
+ return 0;
gargv++;
errno = 0;
@@ -691,7 +691,7 @@
char *ep;
if (!*gargv)
- return (0.0);
+ return 0.0;
if (**gargv == '\"' || **gargv == '\'')
return (double) *((*gargv++)+1);
Home |
Main Index |
Thread Index |
Old Index