Search
lxdream.org :: lxdream/src/gdbserver.c :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename src/gdbserver.c
changeset 1298:d0eb2307b847
prev1272:0b947d924029
author nkeynes
date Wed Feb 04 08:38:23 2015 +1000 (5 years ago)
permissions -rw-r--r--
last change Fix assorted compile warnings reported by Clang
file annotate diff log raw
1.1 --- a/src/gdbserver.c Sat Mar 17 08:36:17 2012 +1000
1.2 +++ b/src/gdbserver.c Wed Feb 04 08:38:23 2015 +1000
1.3 @@ -128,7 +128,7 @@
1.4 size_t gdb_read_binary_data( struct gdb_server *server, unsigned char *buf, char *data, int datalen )
1.5 {
1.6 unsigned char *q = buf;
1.7 - for( int i=0, j=0; i<datalen; i++ ) {
1.8 + for( int i=0; i<datalen; i++ ) {
1.9 if( data[i] == 0x7D ) {
1.10 if( i == datalen-1 ) {
1.11 return -1;
.