Module Name:    src
Committed By:   rillig
Date:           Wed Aug 25 23:03:01 UTC 2021

Modified Files:
        src/usr.bin/cksum: cksum.c

Log Message:
cksum: remove trailing whitespace


To generate a diff of this commit:
cvs rdiff -u -r1.50 -r1.51 src/usr.bin/cksum/cksum.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/usr.bin/cksum/cksum.c
diff -u src/usr.bin/cksum/cksum.c:1.50 src/usr.bin/cksum/cksum.c:1.51
--- src/usr.bin/cksum/cksum.c:1.50	Wed Aug 25 22:59:57 2021
+++ src/usr.bin/cksum/cksum.c	Wed Aug 25 23:03:01 2021
@@ -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 @@ __COPYRIGHT("@(#) Copyright (c) 1991, 19
 #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 @@ main(int argc, char **argv)
 		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 @@ main(int argc, char **argv)
 
 				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 @@ main(int argc, char **argv)
 					 * Search proper hash
 					 */
 					const struct hash *nhash;
-					
+
 					for (nhash = hashes ;
 					     nhash->hashname != NULL;
 					     nhash++)
@@ -351,8 +351,8 @@ main(int argc, char **argv)
 							    nhash->hashname,
 							    strlen(nhash->hashname)) == 0)
 							break;
-					
-					
+
+
 					if (nhash->hashname == NULL) {
 						if (check_warn)
 							warnx("unknown hash: %s",
@@ -373,7 +373,7 @@ main(int argc, char **argv)
 					 */
 					print_flags |= PRINT_NORMAL;
 					nspaces = 1;
-					
+
 					p_cksum = buf;
 					p_filename = strchr(buf, ' ');
 					if (p_filename == NULL) {
@@ -433,11 +433,11 @@ main(int argc, char **argv)
 					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 @@ main(int argc, char **argv)
 		}
 		fclose(f);
 
-		if (badcnt > 0) 
+		if (badcnt > 0)
 			rval = 1;
-		
+
 	} else {
 		/*
 		 * Calculate checksums
@@ -489,7 +489,7 @@ main(int argc, char **argv)
 			} else if (hash && !nohashstdin) {
 				hash->filterfunc(pflag);
 			}
-			
+
 			if (hash == NULL) {
 				if (cfncn(fd, &val, &len)) {
 					warn("%s", fn ? fn : "stdin");

Reply via email to