Module Name: src Committed By: rillig Date: Wed Aug 25 22:59:57 UTC 2021
Modified Files: src/usr.bin/cksum: cksum.c Log Message: cksum: fix lint warning about wrong call to isspace To generate a diff of this commit: cvs rdiff -u -r1.49 -r1.50 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.49 src/usr.bin/cksum/cksum.c:1.50 --- src/usr.bin/cksum/cksum.c:1.49 Thu Mar 18 18:12:35 2021 +++ src/usr.bin/cksum/cksum.c Wed Aug 25 22:59:57 2021 @@ -1,4 +1,4 @@ -/* $NetBSD: cksum.c,v 1.49 2021/03/18 18:12:35 cheusov Exp $ */ +/* $NetBSD: cksum.c,v 1.50 2021/08/25 22:59:57 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.49 2021/03/18 18:12:35 cheusov Exp $"); +__RCSID("$NetBSD: cksum.c,v 1.50 2021/08/25 22:59:57 rillig Exp $"); #endif /* not lint */ #include <sys/types.h> @@ -383,7 +383,7 @@ main(int argc, char **argv) rval = 1; continue; } - while (isspace((int)*++p_filename)) + while (isspace((unsigned char)*++p_filename)) nspaces++; l_filename = strlen(p_filename); l_cksum = p_filename - buf - nspaces;