Whamcloud - gitweb
Use sizeof(var) instead of sizeof(type).
authoradilger <adilger>
Wed, 11 Sep 2002 17:41:01 +0000 (17:41 +0000)
committeradilger <adilger>
Wed, 11 Sep 2002 17:41:01 +0000 (17:41 +0000)
lustre/mds/mds_fs.c

index 51aa4b4..b6a0a50 100644 (file)
@@ -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 */