]> git.ipfire.org Git - people/ms/libloc.git/blobdiff - src/test-as.c
Replace strerror(errno) with %m in format string throughout
[people/ms/libloc.git] / src / test-as.c
index 91b62fd7651e4ef9406d6f0e98c87b3f4f8f8039..43052b4d88df0d881471019519c0721e64dd9417 100644 (file)
@@ -55,7 +55,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);
        }