Skip to content

Commit

Permalink
Fix accessors F_LENGTH() and F_MOD_NSEC().
Browse files Browse the repository at this point in the history
  • Loading branch information
Wayne Davison committed Jun 26, 2010
1 parent ce571e6 commit de32838
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rsync.h
Original file line number Diff line number Diff line change
Expand Up @@ -692,10 +692,10 @@ extern int xattrs_ndx;
#define F_LENGTH(f) ((int64)(f)->len32)
#else
#define F_LENGTH(f) ((int64)(f)->len32 + ((f)->flags & FLAG_LENGTH64 \
? (int64)OPT_EXTRA(f, 0)->unum << 32 : 0))
? (int64)OPT_EXTRA(f, NSEC_BUMP(f))->unum << 32 : 0))
#endif

#define F_MOD_NSEC(f) ((f)->flags & FLAG_MOD_NSEC ? OPT_EXTRA(f, LEN64_BUMP(f))->unum : 0)
#define F_MOD_NSEC(f) ((f)->flags & FLAG_MOD_NSEC ? OPT_EXTRA(f, 0)->unum : 0)

/* If there is a symlink string, it is always right after the basename */
#define F_SYMLINK(f) ((f)->basename + strlen((f)->basename) + 1)
Expand Down

0 comments on commit de32838

Please sign in to comment.