pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/comms/fidogate Fix build for NetBSD 2.99.x: should cas...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/432bb36ce879
branches:  trunk
changeset: 485367:432bb36ce879
user:      tv <tv%pkgsrc.org@localhost>
date:      Wed Dec 08 14:55:56 2004 +0000

description:
Fix build for NetBSD 2.99.x: should cast arg to ctype macros to
"unsigned char" first.  (Oddly enough, this was being done just a few lines
prior when using the values as array indexes.)

diffstat:

 comms/fidogate/distinfo         |   3 ++-
 comms/fidogate/patches/patch-av |  22 ++++++++++++++++++++++
 2 files changed, 24 insertions(+), 1 deletions(-)

diffs (40 lines):

diff -r 62e2a81b5325 -r 432bb36ce879 comms/fidogate/distinfo
--- a/comms/fidogate/distinfo   Wed Dec 08 10:34:53 2004 +0000
+++ b/comms/fidogate/distinfo   Wed Dec 08 14:55:56 2004 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.7 2004/08/23 15:18:02 tv Exp $
+$NetBSD: distinfo,v 1.8 2004/12/08 14:55:56 tv Exp $
 
 SHA1 (fidogate-4.4.9.tar.gz) = 7d23802931a67b5b3cc256f5dd85d8b2c47ab4fe
 Size (fidogate-4.4.9.tar.gz) = 1186562 bytes
@@ -23,3 +23,4 @@
 SHA1 (patch-as) = daf5a80d044933c17f8ab556bebc0765af1439e3
 SHA1 (patch-at) = f6b3fe0bac12489d314e3a1b39bfe67d67b14374
 SHA1 (patch-au) = 90b0a4630b3029b34752972a7e7892b63462a703
+SHA1 (patch-av) = dec5e163dcba702d929f4242083ac942abbf2160
diff -r 62e2a81b5325 -r 432bb36ce879 comms/fidogate/patches/patch-av
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/comms/fidogate/patches/patch-av   Wed Dec 08 14:55:56 2004 +0000
@@ -0,0 +1,22 @@
+$NetBSD: patch-av,v 1.1 2004/12/08 14:55:56 tv Exp $
+
+--- src/common/areas.c.orig    2004-12-08 09:53:06.000000000 -0500
++++ src/common/areas.c
+@@ -369,7 +369,7 @@ static Area *area_build(Area *pa, char *
+           if(areas_x_a[(unsigned char)*q])
+               *p = areas_x_a[(unsigned char)*q];
+           else
+-              *p = tolower(*q);
++              *p = tolower((unsigned char)*q);
+       *p = 0;
+     }
+ 
+@@ -386,7 +386,7 @@ static Area *area_build(Area *pa, char *
+           if(areas_x_g[(unsigned char)*q])
+               *p = areas_x_g[(unsigned char)*q];
+           else
+-              *p = toupper(*q);
++              *p = toupper((unsigned char)*q);
+       *p = 0;
+     }
+     



Home | Main Index | Thread Index | Old Index