From: Trond Myklebust Date: Mon, 14 May 2007 20:50:45 +0000 (-0400) Subject: NFS4: Fix incorrect use of sizeof() in fs/nfs/nfs4xdr.c X-Git-Tag: v2.6.22-rc2~13^2~9 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8ae20abdd18c6c7f21bbae931353e7cfad77d7b6;p=pandora-kernel.git NFS4: Fix incorrect use of sizeof() in fs/nfs/nfs4xdr.c The XDR code should not depend on the physical allocation size of structures like nfs4_stateid and nfs4_verifier since those may have to change at some future date. We therefore replace all uses of sizeof() with constants like NFS4_VERIFIER_SIZE and NFS4_STATEID_SIZE. This also has the side-effect of fixing some warnings of the type format ‘%u’ expects type ‘unsigned int’, but argument X has type ‘long unsigned int’ on 64-bit systems Signed-off-by: Trond Myklebust --- Reading git-diff-tree failed