summaryrefslogtreecommitdiff
path: root/geography/garmin-utils
diff options
context:
space:
mode:
authorgson <gson>2004-12-08 16:28:50 +0000
committergson <gson>2004-12-08 16:28:50 +0000
commit645525336ca050f1a9ea68a79ebf6662118aedd9 (patch)
tree71955d3ba0d7150d0b07ee6ce001e580f54b22be /geography/garmin-utils
parent9ffdd030604b8e7e34fb7ae04ceb7751c68e1a2a (diff)
downloadpkgsrc-645525336ca050f1a9ea68a79ebf6662118aedd9.tar.gz
Cast toupper() arguments to unsigned char to make build succeed
with -Werror.
Diffstat (limited to 'geography/garmin-utils')
-rw-r--r--geography/garmin-utils/distinfo3
-rw-r--r--geography/garmin-utils/patches/patch-ab22
2 files changed, 24 insertions, 1 deletions
diff --git a/geography/garmin-utils/distinfo b/geography/garmin-utils/distinfo
index 14bb493376c..51e33ad8010 100644
--- a/geography/garmin-utils/distinfo
+++ b/geography/garmin-utils/distinfo
@@ -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 --git a/geography/garmin-utils/patches/patch-ab b/geography/garmin-utils/patches/patch-ab
new file mode 100644
index 00000000000..ecbe3707fea
--- /dev/null
+++ b/geography/garmin-utils/patches/patch-ab
@@ -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;