summaryrefslogtreecommitdiff
path: root/cross/uisp/patches
diff options
context:
space:
mode:
authorjoerg <joerg>2011-12-05 22:44:08 +0000
committerjoerg <joerg>2011-12-05 22:44:08 +0000
commit550a12e74dd4b20eb9b2b7a4a22b7e258f19874a (patch)
tree454652146dee00cf6c37fe709251f038ced52e02 /cross/uisp/patches
parent8936a6a5cc5b462c518be7ff9b13ee1d313cb1eb (diff)
downloadpkgsrc-550a12e74dd4b20eb9b2b7a4a22b7e258f19874a.tar.gz
Fix build with newer GCC
Diffstat (limited to 'cross/uisp/patches')
-rw-r--r--cross/uisp/patches/patch-src_MotIntl.C22
-rw-r--r--cross/uisp/patches/patch-src_Stk500.C13
2 files changed, 35 insertions, 0 deletions
diff --git a/cross/uisp/patches/patch-src_MotIntl.C b/cross/uisp/patches/patch-src_MotIntl.C
new file mode 100644
index 00000000000..14fad2319f1
--- /dev/null
+++ b/cross/uisp/patches/patch-src_MotIntl.C
@@ -0,0 +1,22 @@
+$NetBSD: patch-src_MotIntl.C,v 1.1 2011/12/05 22:44:08 joerg Exp $
+
+--- src/MotIntl.C.orig 2011-12-05 20:37:28.000000000 +0000
++++ src/MotIntl.C
+@@ -110,7 +110,7 @@ void TMotIntl::UploadMotorola(){
+ do{
+ /* convert to upper case */
+ buf_len = strlen(line_buf);
+- for (int i=0;i<buf_len;i++){line_buf[i] = toupper(line_buf[i]);}
++ for (int i=0;i<buf_len;i++){line_buf[i] = toupper((unsigned char)line_buf[i]);}
+
+ if (line_buf[0]!='S'){throw Error_Device("Bad Motorola file format.");}
+
+@@ -246,7 +246,7 @@ void TMotIntl::UploadIntel(){
+ do{
+ /* convert to upper case */
+ buf_len = strlen(line_buf);
+- for (int i=0;i<buf_len;i++){line_buf[i] = toupper(line_buf[i]);}
++ for (int i=0;i<buf_len;i++){line_buf[i] = toupper((unsigned char)line_buf[i]);}
+
+ if (line_buf[0]!=':'){throw Error_Device("Bad Intel file format.");}
+
diff --git a/cross/uisp/patches/patch-src_Stk500.C b/cross/uisp/patches/patch-src_Stk500.C
new file mode 100644
index 00000000000..c039b0fcfde
--- /dev/null
+++ b/cross/uisp/patches/patch-src_Stk500.C
@@ -0,0 +1,13 @@
+$NetBSD: patch-src_Stk500.C,v 1.1 2011/12/05 22:44:08 joerg Exp $
+
+--- src/Stk500.C.orig 2011-12-05 20:37:56.000000000 +0000
++++ src/Stk500.C
+@@ -407,7 +407,7 @@ void TStk500::FlushWriteBuffer(){
+ }
+
+ pgsz = prg_part[desired_part].params.pagesize;
+- pagesize = (pgsz[0]) << 8 + pgsz[1];
++ pagesize = (pgsz[0] << 8) + pgsz[1];
+
+ if (pagesize == 0) {
+ pagesize = 128;