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 fb24092..1c72eac 100644 (file)
@@ -576,11 +576,11 @@ static int process_hello(Proxy *p, sd_bus_message *m) {
                 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)
-                return log_error_errno(-EIO, "Got duplicate hello, aborting.");
+                return log_error_errno(EIO, "Got duplicate hello, aborting.");
 
         p->got_hello = true;