2007-05-04 00:32:49 +02:00
|
|
|
Index: xen-3.0.5-testing/tools/ioemu/hw/piix4acpi.c
|
2007-01-16 00:42:10 +01:00
|
|
|
===================================================================
|
2007-05-04 00:32:49 +02:00
|
|
|
--- xen-3.0.5-testing.orig/tools/ioemu/hw/piix4acpi.c
|
|
|
|
+++ xen-3.0.5-testing/tools/ioemu/hw/piix4acpi.c
|
|
|
|
@@ -69,6 +69,8 @@ static int piix4acpi_load(QEMUFile *f, v
|
|
|
|
if (version_id > 1)
|
|
|
|
return -EINVAL;
|
|
|
|
qemu_get_be16s(f, &s->pm1_control);
|
|
|
|
+
|
|
|
|
+ return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
static void acpiPm1Control_writeb(void *opaque, uint32_t addr, uint32_t val)
|
|
|
|
Index: xen-3.0.5-testing/tools/ioemu/hw/usb-hid.c
|
|
|
|
===================================================================
|
|
|
|
--- xen-3.0.5-testing.orig/tools/ioemu/hw/usb-hid.c
|
|
|
|
+++ xen-3.0.5-testing/tools/ioemu/hw/usb-hid.c
|
|
|
|
@@ -557,6 +557,7 @@ int usb_mouse_load(QEMUFile *f, void *op
|
|
|
|
fprintf(logfile, "usb_mouse_load:add usb_mouse_event.\n");
|
|
|
|
qemu_add_mouse_event_handler(usb_mouse_event, s, 0);
|
|
|
|
}
|
|
|
|
+ return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
Index: xen-3.0.5-testing/tools/misc/miniterm/miniterm.c
|
2007-01-16 00:42:10 +01:00
|
|
|
===================================================================
|
2007-05-04 00:32:49 +02:00
|
|
|
--- xen-3.0.5-testing.orig/tools/misc/miniterm/miniterm.c
|
|
|
|
+++ xen-3.0.5-testing/tools/misc/miniterm/miniterm.c
|
2007-01-16 00:42:10 +01:00
|
|
|
@@ -157,7 +157,7 @@ int main(int argc, char **argv)
|
|
|
|
case 0:
|
|
|
|
close(1); /* stdout not needed */
|
|
|
|
for ( c = (char)getchar(); c != ENDMINITERM; c = (char)getchar() )
|
|
|
|
- write(fd,&c,1);
|
|
|
|
+ if (write(fd,&c,1)) ;
|
|
|
|
tcsetattr(fd,TCSANOW,&oldsertio);
|
|
|
|
tcsetattr(0,TCSANOW,&oldstdtio);
|
|
|
|
close(fd);
|
|
|
|
@@ -169,19 +169,19 @@ int main(int argc, char **argv)
|
|
|
|
close(fd);
|
|
|
|
exit(-1);
|
|
|
|
default:
|
|
|
|
- write(1, start_str, strlen(start_str));
|
|
|
|
+ if (write(1, start_str, strlen(start_str))) ;
|
|
|
|
close(0); /* stdin not needed */
|
|
|
|
sa.sa_handler = child_handler;
|
|
|
|
sa.sa_flags = 0;
|
|
|
|
sigaction(SIGCHLD,&sa,NULL); /* handle dying child */
|
|
|
|
while ( !stop )
|
|
|
|
{
|
|
|
|
- read(fd,&c,1); /* modem */
|
|
|
|
+ if (read(fd,&c,1)) ; /* modem */
|
|
|
|
c = (char)c;
|
|
|
|
- write(1,&c,1); /* stdout */
|
|
|
|
+ if (write(1,&c,1)) ; /* stdout */
|
|
|
|
}
|
|
|
|
wait(NULL); /* wait for child to die or it will become a zombie */
|
|
|
|
- write(1, end_str, strlen(end_str));
|
|
|
|
+ if (write(1, end_str, strlen(end_str))) ;
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
|
2007-05-04 00:32:49 +02:00
|
|
|
Index: xen-3.0.5-testing/xen/tools/symbols.c
|
2007-04-26 01:53:07 +02:00
|
|
|
===================================================================
|
2007-05-04 00:32:49 +02:00
|
|
|
--- xen-3.0.5-testing.orig/xen/tools/symbols.c
|
|
|
|
+++ xen-3.0.5-testing/xen/tools/symbols.c
|
|
|
|
@@ -80,7 +80,8 @@ static int read_symbol(FILE *in, struct
|
|
|
|
if (rc != 3) {
|
|
|
|
if (rc != EOF) {
|
|
|
|
/* skip line */
|
|
|
|
- fgets(str, 500, in);
|
|
|
|
+ if (fgets(str, sizeof(str), in) == NULL)
|
|
|
|
+ ; /* don't care */
|
|
|
|
}
|
|
|
|
return -1;
|
|
|
|
}
|