git: kernel/nfs: Fix two wrong sizeofs.

看板DFBSD_commit作者時間14年前 (2011/12/28 02:04), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串1/1
commit d652e60cf063f9f9d1f41194c096a552c6cde32a Author: Sascha Wildner <saw@online.de> Date: Mon Nov 21 05:31:52 2011 +0100 kernel/nfs: Fix two wrong sizeofs. NFSKERBKEY_T (key's type) is (in <vfs/nfs/rpcv2.h>): typedef u_char NFSKERBKEY_T[2]; and key is one of the function's args, so we need to use the type for the sizeof, else we'll get the size of a pointer. Summary of changes: sys/vfs/nfs/nfs_syscalls.c | 5 ++--- 1 files changed, 2 insertions(+), 3 deletions(-) http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/d652e60cf063f9f9d1f41194c096a552c6cde32a -- DragonFly BSD source repository
文章代碼(AID): #1E-WYRL4 (DFBSD_commit)