]> git.ipfire.org Git - people/ms/libloc.git/blobdiff - src/test-database.c
Replace strerror(errno) with %m in format string throughout
[people/ms/libloc.git] / src / test-database.c
index 7037f6abe49a53fef607672119825332dafaf500..1d48661be45bb885f970637367320d38539acf02 100644 (file)
@@ -167,7 +167,7 @@ int main(int argc, char** argv) {
 
        FILE* f = tmpfile();
        if (!f) {
-               fprintf(stderr, "Could not open file for writing: %s\n", strerror(errno));
+               fprintf(stderr, "Could not open file for writing: %m\n");
                exit(EXIT_FAILURE);
        }