]> git.ipfire.org Git - thirdparty/ccache.git/commitdiff
Remove now unused x_fstat function
authorJoel Rosdahl <joel@rosdahl.net>
Mon, 10 Jun 2019 20:55:11 +0000 (22:55 +0200)
committerJoel Rosdahl <joel@rosdahl.net>
Mon, 10 Jun 2019 20:55:11 +0000 (22:55 +0200)
src/ccache.h
src/util.c

index 4ab06086836bbc8ff2cdf0ff84fe5c3d08fef895..1de15b5e218ca659b0753d234e3d258a8afe7805 100644 (file)
@@ -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 *));
index b55b84ba2778d480d3224d8294f351f143882265..af9f563877df6794b758946dcf85bfdd48e4e135 100644 (file)
@@ -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)