Module Name: src
Committed By: rillig
Date: Sat Oct 9 20:44:55 UTC 2021
Modified Files:
src/bin/dd: misc.c
Log Message:
dd: clean up function summary
No functional change. Ideally the binary would have stayed the same, but
GCC 10.3.0 inserts a nop and reorders the code.
To generate a diff of this commit:
cvs rdiff -u -r1.25 -r1.26 src/bin/dd/misc.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/bin/dd/misc.c
diff -u src/bin/dd/misc.c:1.25 src/bin/dd/misc.c:1.26
--- src/bin/dd/misc.c:1.25 Sat Oct 9 20:29:23 2021
+++ src/bin/dd/misc.c Sat Oct 9 20:44:55 2021
@@ -1,4 +1,4 @@
-/* $NetBSD: misc.c,v 1.25 2021/10/09 20:29:23 rillig Exp $ */
+/* $NetBSD: misc.c,v 1.26 2021/10/09 20:44:55 rillig Exp $ */
/*-
* Copyright (c) 1991, 1993, 1994
@@ -38,7 +38,7 @@
#if 0
static char sccsid[] = "@(#)misc.c 8.3 (Berkeley) 4/2/94";
#else
-__RCSID("$NetBSD: misc.c,v 1.25 2021/10/09 20:29:23 rillig Exp $");
+__RCSID("$NetBSD: misc.c,v 1.26 2021/10/09 20:44:55 rillig Exp $");
#endif
#endif /* not lint */
@@ -78,13 +78,11 @@ summary(void)
#ifdef NO_MSGFMT
posix_summary();
#else /* NO_MSGFMT */
- if (strcmp(msgfmt, "human") == 0) {
+ if (strcmp(msgfmt, "human") == 0)
human_summary();
- return;
- } else if (strcmp(msgfmt, "posix") == 0) {
+ else if (strcmp(msgfmt, "posix") == 0)
posix_summary();
- return;
- } else if (strcmp(msgfmt, "quiet") == 0)
+ else if (strcmp(msgfmt, "quiet") == 0)
quiet_summary();
else
custom_summary();