chiark / gitweb /
remove unused includes
[elogind.git] / src / test / test-watchdog.c
index 72e0c03dd78610d55734bf950caeb29ba67e9f71..2e5d0c3aaebfb633784a1504fba8893979f75a30 100644 (file)
@@ -20,7 +20,6 @@
 ***/
 
 #include <unistd.h>
-#include <string.h>
 
 #include "watchdog.h"
 #include "log.h"
@@ -35,13 +34,13 @@ int main(int argc, char *argv[]) {
 
         r = watchdog_set_timeout(&t);
         if (r < 0)
-                log_warning_errno(-r, "Failed to open watchdog: %m");
+                log_warning_errno(r, "Failed to open watchdog: %m");
 
         for (i = 0; i < 5; i++) {
                 log_info("Pinging...");
                 r = watchdog_ping();
                 if (r < 0)
-                        log_warning_errno(-r, "Failed to ping watchdog: %m");
+                        log_warning_errno(r, "Failed to ping watchdog: %m");
 
                 usleep(t/2);
         }