Source-Changes-HG archive

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

[src/trunk]: src/sys/netkey Add (unsigned char) cast to ctype function (for /...



details:   https://anonhg.NetBSD.org/src/rev/0aa03133c555
branches:  trunk
changeset: 570809:0aa03133c555
user:      dsl <dsl%NetBSD.org@localhost>
date:      Fri Oct 29 19:31:04 2004 +0000

description:
Add (unsigned char) cast to ctype function (for /sbin/setkey)

diffstat:

 sys/netkey/key_debug.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 2e081dd28b01 -r 0aa03133c555 sys/netkey/key_debug.c
--- a/sys/netkey/key_debug.c    Fri Oct 29 19:15:20 2004 +0000
+++ b/sys/netkey/key_debug.c    Fri Oct 29 19:31:04 2004 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: key_debug.c,v 1.28 2003/09/12 07:38:11 itojun Exp $    */
+/*     $NetBSD: key_debug.c,v 1.29 2004/10/29 19:31:04 dsl Exp $       */
 /*     $KAME: key_debug.c,v 1.36 2003/06/27 06:46:01 itojun Exp $      */
 
 /*
@@ -31,7 +31,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: key_debug.c,v 1.28 2003/09/12 07:38:11 itojun Exp $");
+__KERNEL_RCSID(0, "$NetBSD: key_debug.c,v 1.29 2004/10/29 19:31:04 dsl Exp $");
 
 #ifdef _KERNEL
 #include "opt_inet.h"
@@ -347,7 +347,7 @@
                        p = (char *)(id + 1);
                        ep = p + len;
                        for (/*nothing*/; *p && p < ep; p++) {
-                               if (isprint(*p))
+                               if (isprint((unsigned char)*p))
                                        printf("%c", *p & 0xff);
                                else
                                        printf("\\%03o", *p & 0xff);



Home | Main Index | Thread Index | Old Index