X-Git-Url: https://git.xinqibao.xyz/slstatus.git/blobdiff_plain/0a287616b2e3122a1b149e28d63560819bcdf7c9..1452a44832a302d8928793b889aafd05ab54df2c:/components/num_files.c?ds=inline diff --git a/components/num_files.c b/components/num_files.c index 327a64d..86ea064 100644 --- a/components/num_files.c +++ b/components/num_files.c @@ -1,6 +1,5 @@ /* See LICENSE file for copyright and license details. */ #include -#include #include #include @@ -14,7 +13,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; }