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: fix lint warning about wrong call to is...



details:   https://anonhg.NetBSD.org/src/rev/d71804d0643e
branches:  trunk
changeset: 1023122:d71804d0643e
user:      rillig <rillig%NetBSD.org@localhost>
date:      Wed Aug 25 22:59:57 2021 +0000

description:
cksum: fix lint warning about wrong call to isspace

diffstat:

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

diffs (27 lines):

diff -r acdc22226ce4 -r d71804d0643e usr.bin/cksum/cksum.c
--- a/usr.bin/cksum/cksum.c     Wed Aug 25 22:52:25 2021 +0000
+++ b/usr.bin/cksum/cksum.c     Wed Aug 25 22:59:57 2021 +0000
@@ -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 @@
 #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 @@
                                                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;



Home | Main Index | Thread Index | Old Index