File: 40_fix_g%2B%2B_4.6.patch

package info (click to toggle)
uisp 20050207-4.3
  • links: PTS
  • area: main
  • in suites: bullseye
  • size: 916 kB
  • sloc: cpp: 4,606; sh: 872; ansic: 429; makefile: 140
file content (21 lines) | stat: -rw-r--r-- 732 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
patch by peter green <plugwash@p10link.net>

diff -urNad '--exclude=CVS' '--exclude=.svn' '--exclude=.git' '--exclude=.arch' '--exclude=.hg' '--exclude=_darcs' '--exclude=.bzr' uisp-20050207~/src/Stk500.C uisp-20050207/src/Stk500.C
--- uisp-20050207~/src/Stk500.C	2011-10-29 23:04:59.000000000 +0000
+++ uisp-20050207/src/Stk500.C	2011-10-29 23:06:46.000000000 +0000
@@ -724,7 +724,6 @@
 void TStk500::ReadMem(){
   TByte buf[0x200];
   int wordsize;
-  TAddr addr;
   TByte seg;
 
   if (segment == SEG_FLASH) {
@@ -741,7 +740,6 @@
 
   EnterProgrammingMode();
 
-  addr = 0;
   for (unsigned int addr=0; addr<GetSegmentSize(); addr+=0x100) {
     memcpy(buf, SetAddress, sizeof(SetAddress));
     buf[1] = (addr/wordsize) & 0xff;