]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
include/CompatSet: trivial const-ness fix
authorJohn Spray <john.spray@redhat.com>
Sun, 3 Jan 2016 18:40:12 +0000 (18:40 +0000)
committerJohn Spray <john.spray@redhat.com>
Thu, 10 Mar 2016 11:18:28 +0000 (11:18 +0000)
Signed-off-by: John Spray <john.spray@redhat.com>
src/include/CompatSet.h

index d3afd402cc45f82996e283a1fb640ec594526a79..43c1ec1603b944ca27591444c6208ddc1a8e5e14 100644 (file)
@@ -154,7 +154,7 @@ struct CompatSet {
    * -1: This CompatSet is missing at least one feature
    *     described in the other. It may still have more features, though.
    */
-  int compare(CompatSet& other) {
+  int compare(const CompatSet& other) {
     if ((other.compat.mask == compat.mask) &&
        (other.ro_compat.mask == ro_compat.mask) &&
        (other.incompat.mask == incompat.mask)) return 0;