From cdf5b847902c1318d467c8dd78b0bb62a6ccdb31 Mon Sep 17 00:00:00 2001 From: adilger Date: Wed, 11 Sep 2002 17:41:01 +0000 Subject: [PATCH] Use sizeof(var) instead of sizeof(type). --- lustre/mds/mds_fs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lustre/mds/mds_fs.c b/lustre/mds/mds_fs.c index 51aa4b4..b6a0a50 100644 --- 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 */ -- 1.8.3.1