summaryrefslogtreecommitdiff
path: root/src/lib9/dirfwstat.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib9/dirfwstat.c')
-rw-r--r--src/lib9/dirfwstat.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/lib9/dirfwstat.c b/src/lib9/dirfwstat.c
index fe9153b9b..e32ddeaea 100644
--- a/src/lib9/dirfwstat.c
+++ b/src/lib9/dirfwstat.c
@@ -48,6 +48,8 @@ futimes(int fd, struct timeval *tv)
static int
futimes(int fd, struct timeval *tv)
{
+ USED(fd);
+ USED(tv);
werrstr("futimes not available");
return -1;
}
@@ -63,14 +65,14 @@ dirfwstat(int fd, Dir *dir)
ret = 0;
#ifndef _WIN32
if(~dir->mode != 0){
- if(fchmod(fd, dir->mode) < 0)
+ if(fchmod(fd, (mode_t)dir->mode) < 0)
ret = -1;
}
#endif
if(~dir->mtime != 0){
- tv[0].tv_sec = dir->mtime;
+ tv[0].tv_sec = (time_t)dir->mtime;
tv[0].tv_usec = 0;
- tv[1].tv_sec = dir->mtime;
+ tv[1].tv_sec = (time_t)dir->mtime;
tv[1].tv_usec = 0;
if(futimes(fd, tv) < 0)
ret = -1;