X-Git-Url: https://git.xinqibao.xyz/slstatus.git/blobdiff_plain/0a287616b2e3122a1b149e28d63560819bcdf7c9..5d6415608b37ebed185e00eae01eb743edb555e5:/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; }