]> xenbits.xensource.com Git - libvirt.git/commitdiff
Update POTFILES, and s/write/safewrite/ to appease 'make syntax-check'
authorCole Robinson <crobinso@redhat.com>
Tue, 12 May 2009 20:44:29 +0000 (20:44 +0000)
committerCole Robinson <crobinso@redhat.com>
Tue, 12 May 2009 20:44:29 +0000 (20:44 +0000)
ChangeLog
po/POTFILES.in
tests/eventtest.c

index 3d87f43f10090d3809bd0716ea8160bbb9f7576b..adc81aee86e0cb56855bb214031181399fb9cfc5 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+Tue May 12 16:39:06 EDT 2009 Cole Robinson <crobinso@redhat.com>
+
+       * tests/eventtest.c: Use safewrite instead of write
+       * po/POTFILES.in: Add src/vbox/vbox_driver.c
+
 Tue May 12 16:25:59 EDT 2009 Cole Robinson <crobinso@redhat.com>
 
        * src/storage_backend_fs.c: Break out FS volume build routines to
index 831f79669b20adcbc3cf1efc9580fd1c13b6c6f8..78f7cbcc3499624ff852226aa65be45e122f002d 100644 (file)
@@ -38,6 +38,7 @@ src/uml_conf.c
 src/uml_driver.c
 src/util.c
 src/uuid.c
+src/vbox/vbox_driver.c
 src/vbox/vbox_tmpl.c
 src/virsh.c
 src/virterror.c
index 4a6366e2b5673161a96cf880aec67a2b1cb2512d..ff74b043e9fa3424c61727482ce60f43b59e9f67 100644 (file)
@@ -30,6 +30,7 @@
 #include "internal.h"
 #include "threads.h"
 #include "logging.h"
+#include "util.h"
 #include "../qemud/event.h"
 
 #define NUM_FDS 5
@@ -309,7 +310,7 @@ mymain(int argc, char **argv)
     /* First time, is easy - just try triggering one of our
      * registered handles */
     startJob("Simple write", &test);
-    ret = write(handles[1].pipeFD[1], &one, 1);
+    ret = safewrite(handles[1].pipeFD[1], &one, 1);
     if (finishJob(1, -1) != EXIT_SUCCESS)
         return EXIT_FAILURE;
 
@@ -319,7 +320,7 @@ mymain(int argc, char **argv)
      * try triggering another handle */
     virEventRemoveHandleImpl(handles[0].watch);
     startJob("Deleted before poll", &test);
-    ret = write(handles[1].pipeFD[1], &one, 1);
+    ret = safewrite(handles[1].pipeFD[1], &one, 1);
     if (finishJob(1, -1) != EXIT_SUCCESS)
         return EXIT_FAILURE;
 
@@ -346,13 +347,13 @@ mymain(int argc, char **argv)
 
     /* NB: this case is subject to a bit of a race condition.
      * Only 1 time in 3 does the 2nd write get triggered by
-     * before poll() exits for the first write(). We don't
+     * before poll() exits for the first safewrite(). We don't
      * see a hard failure in other cases, so nothing to worry
      * about */
     startJob("Deleted during dispatch", &test);
     handles[2].delete = handles[3].watch;
-    ret = write(handles[2].pipeFD[1], &one, 1);
-    ret = write(handles[3].pipeFD[1], &one, 1);
+    ret = safewrite(handles[2].pipeFD[1], &one, 1);
+    ret = safewrite(handles[3].pipeFD[1], &one, 1);
     if (finishJob(2, -1) != EXIT_SUCCESS)
         return EXIT_FAILURE;
 
@@ -361,7 +362,7 @@ mymain(int argc, char **argv)
     /* Extreme fun, lets delete ourselves during dispatch */
     startJob("Deleted during dispatch", &test);
     handles[2].delete = handles[2].watch;
-    ret = write(handles[2].pipeFD[1], &one, 1);
+    ret = safewrite(handles[2].pipeFD[1], &one, 1);
     if (finishJob(2, -1) != EXIT_SUCCESS)
         return EXIT_FAILURE;
 
@@ -410,7 +411,7 @@ mymain(int argc, char **argv)
 
     /* NB: this case is subject to a bit of a race condition.
      * Only 1 time in 3 does the 2nd write get triggered by
-     * before poll() exits for the first write(). We don't
+     * before poll() exits for the first safewrite(). We don't
      * see a hard failure in other cases, so nothing to worry
      * about */
     virEventUpdateTimeoutImpl(timers[2].timer, 100);