X-Git-Url: https://git.xinqibao.xyz/slstatus.git/blobdiff_plain/a4fe8c97414f07dd8b891e0d325dd2733195151d..80fc20d1d69b14f36ad9bb64d8af38481cbf1ff5:/components/num_files.c diff --git a/components/num_files.c b/components/num_files.c index 327a64d..9179037 100644 --- a/components/num_files.c +++ b/components/num_files.c @@ -14,7 +14,7 @@ num_files(const char *dir) int num; if (!(fd = opendir(dir))) { - fprintf(stderr, "opendir '%s': %s\n", dir, strerror(errno)); + warn("opendir '%s':", dir); return NULL; }