summaryrefslogtreecommitdiff
path: root/ham/dpbox/patches/patch-ak
diff options
context:
space:
mode:
Diffstat (limited to 'ham/dpbox/patches/patch-ak')
-rw-r--r--ham/dpbox/patches/patch-ak65
1 files changed, 61 insertions, 4 deletions
diff --git a/ham/dpbox/patches/patch-ak b/ham/dpbox/patches/patch-ak
index 77d4138bc85..841caddee70 100644
--- a/ham/dpbox/patches/patch-ak
+++ b/ham/dpbox/patches/patch-ak
@@ -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:07 joerg Exp $
#include <ctype.h>
#include <sys/time.h>
#include <sys/resource.h>
-@@ -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:07 joerg Exp $
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;