9047ade2a9
framework for the installation of the configuration files. Fixed compile warning message due to implicit casting
31 lines
1 KiB
Text
31 lines
1 KiB
Text
$NetBSD: patch-ao,v 1.2 2006/04/21 02:07:54 wulf Exp $
|
|
|
|
--- box.c.orig 2000-04-27 22:18:52.000000000 +0930
|
|
+++ box.c 2006-04-14 11:45:42.000000000 +0930
|
|
@@ -2226,7 +2226,7 @@
|
|
}
|
|
FORLIM1 = strlen(hs);
|
|
for (x = 0; x < FORLIM1; x++) {
|
|
- if (!(isupper(hs[x]) || isdigit(hs[x]))) hs[x] = ' ';
|
|
+ if (!(isupper((u_char)hs[x]) || isdigit((u_char)hs[x]))) hs[x] = ' ';
|
|
}
|
|
wlnuser(unr, hs);
|
|
rset = false;
|
|
@@ -3609,7 +3609,7 @@
|
|
x = k + 1;
|
|
l = strlen(com);
|
|
while (x <= l && com[x - 1] == ' ') x++;
|
|
- while (x <= l && isdigit(com[x - 1])) {
|
|
+ while (x <= l && isdigit((u_char) com[x - 1])) {
|
|
sprintf(hs + strlen(hs), "%c", com[x - 1]);
|
|
x++;
|
|
}
|
|
@@ -4297,6 +4297,8 @@
|
|
wlnuser(unr, hs);
|
|
#ifdef __NetBSD__
|
|
sprintf(w, "dpbox (NetBSD) v%s%s", dp_vnr, dp_vnr_sub);
|
|
+#elif defined(__DragonFly__)
|
|
+ sprintf(w, "dpbox (DragonFly) v%s%s", dp_vnr, dp_vnr_sub);
|
|
#else
|
|
#ifdef __linux__
|
|
sprintf(w, "dpbox (Linux) v%s%s", dp_vnr, dp_vnr_sub);
|