diff options
author | gson <gson@pkgsrc.org> | 2004-12-08 16:28:50 +0000 |
---|---|---|
committer | gson <gson@pkgsrc.org> | 2004-12-08 16:28:50 +0000 |
commit | dd899faf1677f5637bf1b5c33652aa5ce60d3df7 (patch) | |
tree | 71955d3ba0d7150d0b07ee6ce001e580f54b22be /geography | |
parent | ed564248971a40501870f9fcb0c93adc1a9e6bea (diff) | |
download | pkgsrc-dd899faf1677f5637bf1b5c33652aa5ce60d3df7.tar.gz |
Cast toupper() arguments to unsigned char to make build succeed
with -Werror.
Diffstat (limited to 'geography')
-rw-r--r-- | geography/garmin-utils/distinfo | 3 | ||||
-rw-r--r-- | geography/garmin-utils/patches/patch-ab | 22 |
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; |