Source-Changes-HG archive

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

[src/trunk]: src/usr.bin/cksum cksum: remove trailing whitespace



details:   https://anonhg.NetBSD.org/src/rev/55879f79dc56
branches:  trunk
changeset: 1023123:55879f79dc56
user:      rillig <rillig%NetBSD.org@localhost>
date:      Wed Aug 25 23:03:01 2021 +0000

description:
cksum: remove trailing whitespace

diffstat:

 usr.bin/cksum/cksum.c |  26 +++++++++++++-------------
 1 files changed, 13 insertions(+), 13 deletions(-)

diffs (100 lines):

diff -r d71804d0643e -r 55879f79dc56 usr.bin/cksum/cksum.c
--- a/usr.bin/cksum/cksum.c     Wed Aug 25 22:59:57 2021 +0000
+++ b/usr.bin/cksum/cksum.c     Wed Aug 25 23:03:01 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: cksum.c,v 1.50 2021/08/25 22:59:57 rillig Exp $        */
+/*     $NetBSD: cksum.c,v 1.51 2021/08/25 23:03:01 rillig Exp $        */
 
 /*-
  * Copyright (c) 1991, 1993
@@ -81,7 +81,7 @@
 #if 0
 static char sccsid[] = "@(#)cksum.c    8.2 (Berkeley) 4/28/95";
 #endif
-__RCSID("$NetBSD: cksum.c,v 1.50 2021/08/25 22:59:57 rillig Exp $");
+__RCSID("$NetBSD: cksum.c,v 1.51 2021/08/25 23:03:01 rillig Exp $");
 #endif /* not lint */
 
 #include <sys/types.h>
@@ -303,7 +303,7 @@
                if (f == NULL)
                        err(1, "Cannot read %s",
                            argc>0?argv[0]:"stdin");
-               
+
                while(fgets(buf, sizeof(buf), f) != NULL) {
                        s = strrchr(buf, '\n');
                        if (s)
@@ -332,7 +332,7 @@
 
                                l_cksum = strlen(p_cksum);
                                l_filename = p_cksum - p_filename - 4;
-                                       
+
                                /* Sanity check, and find proper hash if
                                 * it's not the same as the current program
                                 */
@@ -343,7 +343,7 @@
                                         * Search proper hash
                                         */
                                        const struct hash *nhash;
-                                       
+
                                        for (nhash = hashes ;
                                             nhash->hashname != NULL;
                                             nhash++)
@@ -351,8 +351,8 @@
                                                            nhash->hashname,
                                                            strlen(nhash->hashname)) == 0)
                                                        break;
-                                       
-                                       
+
+
                                        if (nhash->hashname == NULL) {
                                                if (check_warn)
                                                        warnx("unknown hash: %s",
@@ -373,7 +373,7 @@
                                         */
                                        print_flags |= PRINT_NORMAL;
                                        nspaces = 1;
-                                       
+
                                        p_cksum = buf;
                                        p_filename = strchr(buf, ' ');
                                        if (p_filename == NULL) {
@@ -433,11 +433,11 @@
                                        rval = 1;
                                        ok = 0;
                                } else {
-                                       if (cfncn(fd, &val, &len)) 
+                                       if (cfncn(fd, &val, &len))
                                                ok = 0;
                                        else {
                                                uint32_t should_val;
-                                               
+
                                                should_val =
                                                  strtoul(cksum, NULL, 10);
                                                if (val == should_val)
@@ -460,9 +460,9 @@
                }
                fclose(f);
 
-               if (badcnt > 0) 
+               if (badcnt > 0)
                        rval = 1;
-               
+
        } else {
                /*
                 * Calculate checksums
@@ -489,7 +489,7 @@
                        } else if (hash && !nohashstdin) {
                                hash->filterfunc(pflag);
                        }
-                       
+
                        if (hash == NULL) {
                                if (cfncn(fd, &val, &len)) {
                                        warn("%s", fn ? fn : "stdin");



Home | Main Index | Thread Index | Old Index