X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fdata%2Fcaseproto.h;h=b0f45c418c47aae8017b0469a5307cff6b9cd7f6;hb=f9d0b49f59af300be5600141a0096b26c96abce9;hp=3fc8c2c051451cddea401b712f534371eceb9043;hpb=ed0dda01c61c6b086e47f64302b75da5df97db87;p=pspp-builds.git diff --git a/src/data/caseproto.h b/src/data/caseproto.h index 3fc8c2c0..b0f45c41 100644 --- a/src/data/caseproto.h +++ b/src/data/caseproto.h @@ -22,6 +22,7 @@ #include #include #include +#include #include /* Case prototype. @@ -78,7 +79,6 @@ struct pool; /* Creation and destruction. */ struct caseproto *caseproto_create (void) MALLOC_LIKE; -struct caseproto *caseproto_clone (const struct caseproto *) ; static inline struct caseproto *caseproto_ref (const struct caseproto *); struct caseproto *caseproto_ref_pool (const struct caseproto *, struct pool *); static inline void caseproto_unref (struct caseproto *); @@ -145,7 +145,7 @@ void caseproto_free__ (struct caseproto *); static inline struct caseproto * caseproto_ref (const struct caseproto *proto_) { - struct caseproto *proto = (struct caseproto *) proto_; + struct caseproto *proto = CONST_CAST (struct caseproto *, proto_); proto->ref_cnt++; return proto; }