From 6160eabec971a3d67230b86cc55a9734bb298ef2 Mon Sep 17 00:00:00 2001 From: adilger Date: Tue, 24 Sep 2002 19:26:10 +0000 Subject: [PATCH] Use sizeof(var) instead of sizeof(type). --- lustre/obdclass/genops.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 1.8.3.1