From: Joel Rosdahl Date: Mon, 10 Jun 2019 20:55:11 +0000 (+0200) Subject: Remove now unused x_fstat function X-Git-Tag: v4.0~944 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fb36aeb181cb93d470c8e8c4d48a784d40bd130f;p=thirdparty%2Fccache.git Remove now unused x_fstat function --- diff --git a/src/ccache.h b/src/ccache.h index 4ab060868..1de15b5e2 100644 --- a/src/ccache.h +++ b/src/ccache.h @@ -167,7 +167,6 @@ void *x_calloc(size_t nmemb, size_t size); void *x_realloc(void *ptr, size_t size); void x_setenv(const char *name, const char *value); void x_unsetenv(const char *name); -int x_fstat(int fd, struct stat *buf); int x_lstat(const char *pathname, struct stat *buf); int x_stat(const char *pathname, struct stat *buf); void traverse(const char *dir, void (*fn)(const char *, struct stat *)); diff --git a/src/util.c b/src/util.c index b55b84ba2..af9f56387 100644 --- a/src/util.c +++ b/src/util.c @@ -678,17 +678,6 @@ void x_unsetenv(const char *name) #endif } -// Like fstat() but also call cc_log on failure. -int -x_fstat(int fd, struct stat *buf) -{ - int result = fstat(fd, buf); - if (result != 0) { - cc_log("Failed to fstat fd %d: %s", fd, strerror(errno)); - } - return result; -} - // Like lstat() but also call cc_log on failure. int x_lstat(const char *pathname, struct stat *buf)