chiark / gitweb /
remove unused includes
[elogind.git] / src / test / test-hostname.c
index ad4f2856190878cc120b10b276e37ba61abd8dd0..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)
-                fprintf(stderr, "hostname: %s\n", strerror(-r));
+                log_error_errno(r, "hostname: %m");
 
         return 0;
 }