]> git.ipfire.org Git - people/ms/libloc.git/blobdiff - src/test-network.c
Replace strerror(errno) with %m in format string throughout
[people/ms/libloc.git] / src / test-network.c
index 1c49d60658395e5fd10a882f8a41bb9ef4b725f1..dcb389a6ff3eeb265527221d0b998eadfa7e37e9 100644 (file)
@@ -260,7 +260,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);
        }