pkgsrc/ham/dpbox/patches/patch-ax
wulf 9047ade2a9 Implemented changes for this package to use the REQD_DIR and CONF_FILES
framework for the installation of the configuration files.
Fixed compile warning message due to implicit casting
2006-04-21 02:07:53 +00:00

24 lines
660 B
Text

$NetBSD: patch-ax,v 1.1 2006/04/21 02:07:54 wulf Exp $
--- dpgate.c.orig 2006-04-14 12:12:16.000000000 +0930
+++ dpgate.c 2006-04-14 12:12:45.000000000 +0930
@@ -155,7 +155,7 @@
if (buf[i] == '\r') {
putchar('\n');
}
- else if (isprint(buf[i]))
+ else if (isprint((u_char) buf[i]))
putchar(buf[i]);
else
putchar('.');
@@ -696,8 +696,8 @@
while (*i) {
if (*i == '%' && strlen(i) > 2 && i[1] != '%') {
i++;
- h[0] = toupper(*i++);
- h[1] = toupper(*i++);
+ h[0] = toupper((u_char) *i++);
+ h[1] = toupper((u_char) *i++);
h[2] = '\0';
r = 32;
sscanf(h, "%X", &r);