comparison gdb_remote.c @ 757:483f7e7926a6

More clang warning cleanup
author Michael Pavone <pavone@retrodev.com>
date Sun, 28 Jun 2015 09:53:17 -0700
parents 9324f721efa6
children 724bbec47f86
comparison
equal deleted inserted replaced
756:e1dc98f7ed9f 757:483f7e7926a6
281 } 281 }
282 case 'm': { 282 case 'm': {
283 char * rest; 283 char * rest;
284 uint32_t address = strtoul(command+1, &rest, 16); 284 uint32_t address = strtoul(command+1, &rest, 16);
285 uint32_t size = strtoul(rest+1, NULL, 16); 285 uint32_t size = strtoul(rest+1, NULL, 16);
286 if (size > sizeof(send_buf-1)/2) { 286 if (size > (sizeof(send_buf)-1)/2) {
287 size = sizeof(send_buf-1)/2; 287 size = (sizeof(send_buf)-1)/2;
288 } 288 }
289 char *cur = send_buf; 289 char *cur = send_buf;
290 while (size) 290 while (size)
291 { 291 {
292 hex_8(read_byte(context, address), cur); 292 hex_8(read_byte(context, address), cur);