diff options
author | mav <mav@FreeBSD.org> | 2013-07-01 17:23:13 +0000 |
---|---|---|
committer | mav <mav@FreeBSD.org> | 2013-07-01 17:23:13 +0000 |
commit | de60c55689fb325634e8ed664d50a1649324d9db (patch) | |
tree | 5d2444b73af55d43fb8fec66d474824309f0189c /lib/libstand/nfs.c | |
parent | b8949bad09bc1adeec3760744e711f045aa131ff (diff) | |
download | FreeBSD-src-de60c55689fb325634e8ed664d50a1649324d9db.zip FreeBSD-src-de60c55689fb325634e8ed664d50a1649324d9db.tar.gz |
Move pos++ out of the complicated equation, introduced at r240780.
There is an oppinion that result of that equation is compiler-specific.
Submitted by: dt71@gmx.com, kientzle
Reviewed by: rmacklem
MFC after: 3 days
Diffstat (limited to 'lib/libstand/nfs.c')
-rw-r--r-- | lib/libstand/nfs.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/libstand/nfs.c b/lib/libstand/nfs.c index a7a7ccb..adb0a11 100644 --- a/lib/libstand/nfs.c +++ b/lib/libstand/nfs.c @@ -1465,8 +1465,9 @@ nfs_readdir(struct open_file *f, struct dirent *d) d->d_name[d->d_namlen] = '\0'; pos = roundup(d->d_namlen, sizeof(uint32_t)) / sizeof(uint32_t); - fp->off = cookie = ((uint64_t)ntohl(rent->nameplus[pos++]) << 32) | - ntohl(rent->nameplus[pos++]); + fp->off = cookie = ((uint64_t)ntohl(rent->nameplus[pos]) << 32) | + ntohl(rent->nameplus[pos + 1]); + pos += 2; buf = (u_char *)&rent->nameplus[pos]; return (0); } |