From 85f355fe5c63e3de8a84d856851180c2ea26345f Mon Sep 17 00:00:00 2001 From: Anand Avati Date: Thu, 8 Apr 2010 13:54:38 +0000 Subject: protocol: fix endianness for nanosecond field in stat structure Signed-off-by: Anand V. Avati Signed-off-by: Anand V. Avati BUG: 801 (Direct io-mode support and related changes in caching translators.) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=801 --- libglusterfs/src/protocol.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'libglusterfs/src/protocol.h') diff --git a/libglusterfs/src/protocol.h b/libglusterfs/src/protocol.h index 3efe53567..a9ba65823 100644 --- a/libglusterfs/src/protocol.h +++ b/libglusterfs/src/protocol.h @@ -75,11 +75,11 @@ gf_stat_to_stat (struct gf_stat *gf_stat, struct stat *stat) stat->st_blksize = ntoh32 (gf_stat->blksize); stat->st_blocks = ntoh64 (gf_stat->blocks); stat->st_atime = ntoh32 (gf_stat->atime); - ST_ATIM_NSEC_SET(stat, gf_stat->atime_nsec); - stat->st_mtime = ntoh32 (gf_stat->mtime); - ST_MTIM_NSEC_SET(stat, gf_stat->mtime_nsec); - stat->st_ctime = ntoh32 (gf_stat->ctime); - ST_CTIM_NSEC_SET(stat, gf_stat->ctime_nsec); + ST_ATIM_NSEC_SET(stat, ntoh32 (gf_stat->atime_nsec)); + stat->st_mtime = ntoh32 (gf_stat->mtime); + ST_MTIM_NSEC_SET(stat, ntoh32 (gf_stat->mtime_nsec)); + stat->st_ctime = ntoh32 (gf_stat->ctime); + ST_CTIM_NSEC_SET(stat, ntoh32 (gf_stat->ctime_nsec)); } -- cgit