X-Git-Url: https://git.xinqibao.xyz/slstatus.git/blobdiff_plain/7246dc4381c6c95454672a5c1aff65a02d6d3747..2289798b6d3565d96cc81d5208c50afa2010e296:/components/num_files.c?ds=sidebyside diff --git a/components/num_files.c b/components/num_files.c index a8a3894..c471400 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 = 0; if ((fd = opendir(dir)) == NULL) { - warn("Failed to get number of files in directory %s", dir); + fprintf(stderr, "Failed to get number of files in directory %s", dir); return NULL; }