'ret' is used to hold the return of target_read, and pass it on.  Both
target_read and target_read_live_memory return LONGEST.
gdb/
2013-08-23  Pedro Alves  <palves@redhat.com>
	* target.c (target_read_live_memory): Change type of 'ret' local
	to LONGEST.
+2013-08-23  Pedro Alves  <palves@redhat.com>
+
+       * target.c (target_read_live_memory): Change type of 'ret' local
+       to LONGEST.
+
 2013-08-23  Pedro Alves  <palves@redhat.com>
 
        * remote.c (remote_write_bytes_aux, remote_write_bytes)
 
 target_read_live_memory (enum target_object object,
                         ULONGEST memaddr, gdb_byte *myaddr, LONGEST len)
 {
-  int ret;
+  LONGEST ret;
   struct cleanup *cleanup;
 
   /* Switch momentarily out of tfind mode so to access live memory.