From aa1e38643197ad63a554cfcca7ca3a86be12a48a Mon Sep 17 00:00:00 2001 From: gson Date: Wed, 8 Dec 2004 16:28:50 +0000 Subject: Cast toupper() arguments to unsigned char to make build succeed with -Werror. --- geography/garmin-utils/distinfo | 3 ++- geography/garmin-utils/patches/patch-ab | 22 ++++++++++++++++++++++ 2 files changed, 24 insertions(+), 1 deletion(-) create mode 100644 geography/garmin-utils/patches/patch-ab (limited to 'geography/garmin-utils') 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; -- cgit v1.2.3