Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. =================================================================== RCS file: /ftp/cvs/cvsroot/pkgsrc/ham/dpbox/patches/patch-ak,v retrieving revision 1.1 retrieving revision 1.2 diff -u -p -r1.1 -r1.2 --- pkgsrc/ham/dpbox/patches/patch-ak 2006/01/24 22:27:07 1.1 +++ pkgsrc/ham/dpbox/patches/patch-ak 2006/04/21 02:07:54 1.2 @@ -1,7 +1,7 @@ -$NetBSD: patch-ak,v 1.1 2006/01/24 22:27:07 joerg Exp $ +$NetBSD: patch-ak,v 1.2 2006/04/21 02:07:54 wulf Exp $ ---- pastrix.c.orig 2006-01-24 22:01:20.000000000 +0000 -+++ pastrix.c +--- pastrix.c.orig 2000-04-27 22:18:55.000000000 +0930 ++++ pastrix.c 2006-04-14 11:56:19.000000000 +0930 @@ -19,7 +19,7 @@ #include "boxlocal.h" #include "tools.h" @@ -11,7 +11,7 @@ $NetBSD: patch-ak,v 1.1 2006/01/24 22:27 #include #include #include -@@ -80,7 +80,7 @@ long statclock(void) +@@ -80,7 +80,7 @@ #endif } @@ -20,3 +20,60 @@ $NetBSD: patch-ak,v 1.1 2006/01/24 22:27 long get_cpuusage(void) { +@@ -557,7 +557,7 @@ + return 129; + + default: +- return tolower(ch); ++ return tolower((u_char) ch); + } + } + +@@ -576,7 +576,7 @@ + return 154; + + default: +- return toupper(ch); ++ return toupper((u_char) ch); + } + } + +@@ -615,7 +615,7 @@ + if (*s == '\0') return false; + } + while (*s != '\0') { +- if (!isdigit(*s++)) { ++ if (!isdigit((u_char) *s++)) { + return false; + } + } +@@ -633,7 +633,7 @@ + if (s[1] == '\0') + return false; + while (*s != '\0') { +- if (!((*s >= 'a' && *s <= 'f') || (*s >= 'A' && *s <= 'F') || isdigit(*s))) ++ if (!((*s >= 'a' && *s <= 'f') || (*s >= 'A' && *s <= 'F') || isdigit((u_char) *s))) + return false; + s++; + } +@@ -669,9 +669,9 @@ + + digit = false; + while (*s != '\0') { +- if (!(*s == 'e' || *s == 'E' || *s == '+' || *s == '-' || *s == '.' || isdigit(*s))) ++ if (!(*s == 'e' || *s == 'E' || *s == '+' || *s == '-' || *s == '.' || isdigit((u_char) *s))) + return false; +- else if (isdigit(*s)) ++ else if (isdigit((u_char) *s)) + digit = true; + } + +@@ -702,7 +702,7 @@ + return c - 87; + + default: +- if (isdigit(c)) ++ if (isdigit((u_char) c)) + return c - '0'; + else + return 0;