fstools: use -Wno-format-truncation instead of -Wno-error=format-truncation
[project/fstools.git] / libblkid-tiny / mkdev.c
index 06c0358..a35722b 100644 (file)
@@ -16,6 +16,7 @@
 
 #include <sys/stat.h>
 #include <sys/types.h>
+#include <sys/sysmacros.h>
 
 #include <stdio.h>
 #include <string.h>
@@ -88,7 +89,6 @@ int mkblkdev(void)
 
        mode = 0600;
        find_devs(true);
-       chdir("/");
 
-       return 0;
+       return chdir("/");
 }