pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/geography/garmin-utils Cast toupper() arguments to uns...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/ed5c5caad6f9
branches:  trunk
changeset: 485369:ed5c5caad6f9
user:      gson <gson%pkgsrc.org@localhost>
date:      Wed Dec 08 16:28:50 2004 +0000

description:
Cast toupper() arguments to unsigned char to make build succeed
with -Werror.

diffstat:

 geography/garmin-utils/distinfo         |   3 ++-
 geography/garmin-utils/patches/patch-ab |  22 ++++++++++++++++++++++
 2 files changed, 24 insertions(+), 1 deletions(-)

diffs (37 lines):

diff -r e793b98909b2 -r ed5c5caad6f9 geography/garmin-utils/distinfo
--- a/geography/garmin-utils/distinfo   Wed Dec 08 16:21:00 2004 +0000
+++ b/geography/garmin-utils/distinfo   Wed Dec 08 16:28:50 2004 +0000
@@ -1,5 +1,6 @@
-$NetBSD: distinfo,v 1.2 2004/09/08 20:47:54 gson Exp $
+$NetBSD: distinfo,v 1.3 2004/12/08 16:28:50 gson Exp $
 
 SHA1 (garmin-utils-2.1.tar.gz) = 4d145034ec60d88000644ec3ed074a6595e0ce14
 Size (garmin-utils-2.1.tar.gz) = 172468 bytes
 SHA1 (patch-aa) = fadc8e68041d468837bfdd3b57f7773ed32603bc
+SHA1 (patch-ab) = 6cc8d41b36e3565e3ccdc1a53800e7f3e06f0845
diff -r e793b98909b2 -r ed5c5caad6f9 geography/garmin-utils/patches/patch-ab
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/geography/garmin-utils/patches/patch-ab   Wed Dec 08 16:28:50 2004 +0000
@@ -0,0 +1,22 @@
+$NetBSD: patch-ab,v 1.1 2004/12/08 16:28:50 gson Exp $
+
+--- lib/gpsformat.c.orig       2004-12-04 15:53:31.000000000 +0200
++++ lib/gpsformat.c
+@@ -153,7 +153,7 @@ wpt_common(int *datalen, int state, char
+ 
+       /* byte 1-6: waypoint name */
+       for (ix = 0; ix < 6; ix += 1) {
+-              data[len++] = toupper(name[ix]);
++              data[len++] = toupper((unsigned char)(name[ix]));
+       }
+ 
+       /* byte 7-10: latitude */
+@@ -584,7 +584,7 @@ waypoints(gps_handle gps, u_char *buf, i
+                       len = end - beg - 2;
+               if (len > GPS_STRING_MAX)
+                       len = GPS_STRING_MAX;
+-              switch (toupper(beg[-1])) {
++              switch (toupper((unsigned char)(beg[-1]))) {
+               case 'A':
+                       /* altitude ignored */
+                       break;



Home | Main Index | Thread Index | Old Index