chiark / gitweb /
fstab-generator: ignore invalid swap priority
[elogind.git] / src / test / test-hostname.c
index 1bc4126590b529938f2eb8f21a62495e2f39cb5c..c7e5de896b3a314984263f59020d7a91941d96cd 100644 (file)
   along with systemd; If not, see <http://www.gnu.org/licenses/>.
 ***/
 
-#include <errno.h>
-#include <string.h>
-#include <stdio.h>
-#include <fcntl.h>
 
 #include "hostname-setup.h"
 #include "util.h"
@@ -32,7 +28,7 @@ int main(int argc, char* argv[]) {
 
         r = hostname_setup();
         if (r < 0)
-                log_error_errno(-r, "hostname: %m");
+                log_error_errno(r, "hostname: %m");
 
         return 0;
 }