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