chiark / gitweb /
bus-proxy: no need to negate error codes, log_error_errno() already does it
authorLennart Poettering <lennart@poettering.net>
Fri, 13 Feb 2015 14:34:11 +0000 (15:34 +0100)
committerLennart Poettering <lennart@poettering.net>
Fri, 13 Feb 2015 14:49:51 +0000 (15:49 +0100)
src/bus-proxyd/proxy.c

index fb2409233c54a6d0cd7e17eea146f10e131687bb..1c72eac36691e17a45f1f1d4ffcc8fdd9e0eb029 100644 (file)
@@ -576,11 +576,11 @@ static int process_hello(Proxy *p, sd_bus_message *m) {
                 if (p->got_hello)
                         return 0;
 
                 if (p->got_hello)
                         return 0;
 
-                return log_error_errno(-EIO, "First packet isn't hello (it's %s.%s), aborting.", m->interface, m->member);
+                return log_error_errno(EIO, "First packet isn't hello (it's %s.%s), aborting.", m->interface, m->member);
         }
 
         if (p->got_hello)
         }
 
         if (p->got_hello)
-                return log_error_errno(-EIO, "Got duplicate hello, aborting.");
+                return log_error_errno(EIO, "Got duplicate hello, aborting.");
 
         p->got_hello = true;
 
 
         p->got_hello = true;