summaryrefslogtreecommitdiff
path: root/src/libunixonacid/stat_at.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/libunixonacid/stat_at.c')
-rw-r--r--src/libunixonacid/stat_at.c7
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 ;