examples/ld_nfs.c : fix: removing usec from fxstat

usec are not anymore supported in recent implementations of stat_t
(and they are not very usefull in that program btw)
libnfs-4.0.0-vitalif
Yann GASCUEL 2017-11-26 16:23:11 +01:00
parent 7c68a3d891
commit fc568809d5
1 changed files with 0 additions and 6 deletions

View File

@ -442,11 +442,8 @@ int __fxstat(int ver, int fd, struct stat *buf)
buf->st_blksize = st64.nfs_blksize;
buf->st_blocks = st64.nfs_blocks;
buf->st_atim.tv_sec = st64.nfs_atime;
buf->st_atim.tv_usec = st64.nfs_atime_nsec / 1000;
buf->st_mtim.tv_sec = st64.nfs_mtime;
buf->st_mtim.tv_usec = st64.nfs_mtime_nsec / 1000;
buf->st_ctim.tv_sec = st64.nfs_ctime;
buf->st_ctim.tv_usec = st64.nfs_ctime_nsec / 1000;
LD_NFS_DPRINTF(9, "__fxstat(%d) success", fd);
return ret;
@ -481,11 +478,8 @@ int __fxstat64(int ver, int fd, struct stat64 *buf)
buf->st_blksize = st64.nfs_blksize;
buf->st_blocks = st64.nfs_blocks;
buf->st_atim.tv_sec = st64.nfs_atime;
buf->st_atim.tv_usec = st64.nfs_atime_nsec / 1000;
buf->st_mtim.tv_sec = st64.nfs_mtime;
buf->st_mtim.tv_usec = st64.nfs_mtime_nsec / 1000;
buf->st_ctim.tv_sec = st64.nfs_ctime;
buf->st_ctim.tv_usec = st64.nfs_ctime_nsec / 1000;
LD_NFS_DPRINTF(9, "__fxstat64(%d) success", fd);
return ret;