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:
8b814e3
)
Use sizeof(var) instead of sizeof(type).
author
adilger
<adilger>
Wed, 11 Sep 2002 17:41:01 +0000
(17:41 +0000)
committer
adilger
<adilger>
Wed, 11 Sep 2002 17:41:01 +0000
(17:41 +0000)
lustre/mds/mds_fs.c
patch
|
blob
|
history
diff --git
a/lustre/mds/mds_fs.c
b/lustre/mds/mds_fs.c
index
51aa4b4
..
b6a0a50
100644
(file)
--- a/
lustre/mds/mds_fs.c
+++ b/
lustre/mds/mds_fs.c
@@
-63,7
+63,7
@@
int mds_client_add(struct mds_export_data *med, int cl_off)
LBUG();
goto repeat;
}
- cl_off = (word - last_rcvd_slots) * sizeof(
unsigned long
) + bit;
+ cl_off = (word - last_rcvd_slots) * sizeof(
*word
) + bit;
} else {
/* test_and_set_bit can handle cl_off > sizeof(long), so there's
* no need to frob it */