]> git.pld-linux.org Git - packages/armst.git/blob - stmbl.patch
- kill one more warning
[packages/armst.git] / stmbl.patch
1 --- stmbl.c.oryg        2012-06-13 15:01:49.000000000 +0200
2 +++ stmbl.c     2012-06-13 15:12:51.000000000 +0200
3 @@ -118,7 +118,7 @@
4         printf(" chk = %x\n", checksum);
5  #endif
6         // send stream
7 -       write(stmbl.device, &prefix_byte, 1);
8 +       rval = write(stmbl.device, &prefix_byte, 1);
9         rval = write(stmbl.device, buf, size);
10         return rval + write(stmbl.device, &checksum, 1);
11  }
12 @@ -127,7 +127,7 @@
13  int stmblRecv(uint8_t* buf, unsigned int size)
14  {
15         int rsize = 0;
16 -       int rval, i;
17 +       int rval;
18         
19         while( rsize < size ) {
20                 // Look whether there are still pending bytes in the buffer
21 @@ -210,6 +210,7 @@
22  
23  int stmblGetVersionNprotection()
24  {
25 +       return 0;
26  }
27  
28  
29 @@ -236,7 +237,6 @@
30                 address & 0xFF
31         };
32         int rval;
33 -       int i;
34  
35         if (size > 256) return STMBL_ERR_SIZE;
36         if (!stmblCmdAvail(0x11)) return STMBL_ERR_INVALIDCMD;
37 @@ -308,19 +308,23 @@
38  
39  int stmblWriteProtect()
40  {
41 +       return 0;
42  }
43  
44  
45  int stmblWriteUnprotect()
46  {
47 +       return 0;
48  }
49  
50  
51  int stmblReadoutProtect()
52  {
53 +       return 0;
54  }
55  
56  
57  int stmblReadoutUnprotect()
58  {
59 +       return 0;
60  }
61 --- Makefile~   2012-06-13 15:17:22.000000000 +0200
62 +++ Makefile    2012-06-13 15:17:22.000000000 +0200
63 @@ -10,7 +10,7 @@
64         LIBS    =
65  
66         CFLAGS  = -Wall -g
67 -
68 +DESTDIR=/usr/local/bin
69  
70  # Do the stuff as specified above.
71  all:   armst
72 @@ -19,7 +19,7 @@
73         $(CC) -o $@ $(CFLAGS) $(OBJ) $(LIBS)
74  
75  install: armst
76 -       install armst /usr/local/bin
77 +       install -p armst $(DESTDIR)
78  
79  clean:
80         rm *~ *.o
This page took 0.122077 seconds and 3 git commands to generate.