Whamcloud - gitweb
git://git.whamcloud.com
/
fs
/
lustre-release.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2b8f4e1
)
Use sizeof(var) instead of sizeof(type).
author
adilger
<adilger>
Tue, 24 Sep 2002 19:26:10 +0000
(19:26 +0000)
committer
adilger
<adilger>
Tue, 24 Sep 2002 19:26:10 +0000
(19:26 +0000)
lustre/obdclass/genops.c
patch
|
blob
|
history
diff --git
a/lustre/obdclass/genops.c
b/lustre/obdclass/genops.c
index
5ead79d
..
acf1bd7
100644
(file)
--- 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);