9047ade2a9
framework for the installation of the configuration files. Fixed compile warning message due to implicit casting
46 lines
1.7 KiB
Text
46 lines
1.7 KiB
Text
$NetBSD: patch-av,v 1.1 2006/04/21 02:07:54 wulf Exp $
|
|
|
|
--- dpputlinks.c.orig 2006-04-14 12:10:10.000000000 +0930
|
|
+++ dpputlinks.c 2006-04-14 12:11:41.000000000 +0930
|
|
@@ -45,11 +45,11 @@
|
|
*o = '\0';
|
|
l = strlen(s);
|
|
if (l > 55 && s[13] == '&' && s[5] == ' ' && s[12] == ' '
|
|
- && s[17] == ' ' && s[30] == ' ' && s[56] == ' ' && isdigit(s[55])
|
|
- && isdigit(s[29])) {
|
|
+ && s[17] == ' ' && s[30] == ' ' && s[56] == ' ' && isdigit((u_char) s[55])
|
|
+ && isdigit((u_char) s[29])) {
|
|
|
|
for (x = 18; x <= 25; x++) {
|
|
- if (s[x] != '.') board[x-18] = toupper(s[x]);
|
|
+ if (s[x] != '.') board[x-18] = toupper((u_char) s[x]);
|
|
else board[x-18] = '\0';
|
|
}
|
|
board[8] = '\0';
|
|
@@ -105,8 +105,8 @@
|
|
if (token != NULL) {
|
|
token++;token++;
|
|
for (x = 1; x < 9; x++) {
|
|
- if (isalnum(*token) || *token == '_' || *token == '-' || *token == '/')
|
|
- *t2++ = toupper(*token++);
|
|
+ if (isalnum((u_char) *token) || *token == '_' || *token == '-' || *token == '/')
|
|
+ *t2++ = toupper((u_char) *token++);
|
|
else
|
|
x = 9;
|
|
}
|
|
@@ -120,12 +120,12 @@
|
|
*o = '\0';
|
|
l = strlen(s);
|
|
if (l > 33 && s[23] == ':' && s[4] == ' ' && s[11] == ' '
|
|
- && s[20] == ' ' && s[26] == ' ' && s[33] == ' ' && isdigit(s[3])
|
|
- && isdigit(s[12])) {
|
|
+ && s[20] == ' ' && s[26] == ' ' && s[33] == ' ' && isdigit((u_char) s[3])
|
|
+ && isdigit((u_char) s[12])) {
|
|
|
|
token = nums;
|
|
for (x = 0; x <= 3; x++) {
|
|
- if (isdigit(s[x])) *token++ = s[x];
|
|
+ if (isdigit((u_char) s[x])) *token++ = s[x];
|
|
}
|
|
*token = '\0';
|
|
num = atoi(nums);
|