From: adilger Date: Tue, 24 Sep 2002 19:26:10 +0000 (+0000) Subject: Use sizeof(var) instead of sizeof(type). X-Git-Tag: v1_7_100~4686 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=6160eabec971a3d67230b86cc55a9734bb298ef2;p=fs%2Flustre-release.git Use sizeof(var) instead of sizeof(type). --- diff --git a/lustre/obdclass/genops.c b/lustre/obdclass/genops.c index 5ead79d..acf1bd7 100644 --- a/lustre/obdclass/genops.c +++ b/lustre/obdclass/genops.c @@ -363,7 +363,7 @@ struct obd_export *class_new_export(struct obd_device *obddev) } memset(export, 0, sizeof(*export)); - get_random_bytes(&export->exp_cookie, sizeof(__u64)); + get_random_bytes(&export->exp_cookie, sizeof(export->exp_cookie)); export->exp_obd = obddev; /* XXX should these be in MDS and LDLM init functions? */ INIT_LIST_HEAD(&export->exp_mds_data.med_open_head);