diff options
author | Laurent Bercot <ska-skaware@skarnet.org> | 2017-02-17 22:30:53 +0000 |
---|---|---|
committer | Laurent Bercot <ska-skaware@skarnet.org> | 2017-02-17 22:30:53 +0000 |
commit | fdffefb8032922ce7ffe4c00816072a8ff2148fc (patch) | |
tree | bc7313151a429c45d8bab8ad8b9dd32f4e51335f /src/libunixonacid/stat_at.c | |
parent | a896ca2a8c617e5e00ffd5fc9e69331ad754e5b3 (diff) | |
download | skalibs-fdffefb8032922ce7ffe4c00816072a8ff2148fc.tar.xz |
More types changes
New disize
Add size_t to the autotypes list
Delete redundant and replace-libc files
dev_t/ino_t pass
Big size_t pass
More things missing, still not operational yet
Diffstat (limited to 'src/libunixonacid/stat_at.c')
-rw-r--r-- | src/libunixonacid/stat_at.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/libunixonacid/stat_at.c b/src/libunixonacid/stat_at.c index 11f7924..3f0f1a5 100644 --- a/src/libunixonacid/stat_at.c +++ b/src/libunixonacid/stat_at.c @@ -9,7 +9,6 @@ #endif #include <skalibs/nonposix.h> -#include <sys/types.h> #include <sys/stat.h> #include <fcntl.h> #include <skalibs/unix-transactional.h> @@ -43,7 +42,7 @@ static int fstat_at (int dirfd, char const *file, struct stat *st, int (*dostat) if (fdhere < 0) return -1 ; if (fd_chdir(dirfd) < 0) { - register int e = errno ; + int e = errno ; fd_close(fdhere) ; errno = e ; return -1 ; @@ -51,7 +50,7 @@ static int fstat_at (int dirfd, char const *file, struct stat *st, int (*dostat) r = (*dostat)(file, st) ; if (r < 0) { - register int e = errno ; + int e = errno ; fd_chdir(fdhere) ; fd_close(fdhere) ; errno = e ; @@ -59,7 +58,7 @@ static int fstat_at (int dirfd, char const *file, struct stat *st, int (*dostat) } if (fd_chdir(fdhere) < 0) { - register int e = errno ; + int e = errno ; fd_close(fdhere) ; errno = e ; return -1 ; |