X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fdata%2Fcaseproto.h;h=e6921888f58baf7e12332810f241f2ac0cc60b42;hb=9db55512389a5a6a06d6d864512d8a4c214a71d5;hp=207ecacedb85fb604d44974c64c2187fc8338db5;hpb=dc331e08118a1c299a41069f6f51183176b27621;p=pspp diff --git a/src/data/caseproto.h b/src/data/caseproto.h index 207ecacedb..e6921888f5 100644 --- a/src/data/caseproto.h +++ b/src/data/caseproto.h @@ -99,11 +99,11 @@ struct caseproto *caseproto_insert_width (struct caseproto *, size_t before, int width) WARN_UNUSED_RESULT; struct caseproto *caseproto_remove_widths (struct caseproto *, - size_t idx, size_t cnt) + size_t idx, size_t n) WARN_UNUSED_RESULT; struct caseproto *caseproto_move_widths (struct caseproto *, size_t old_start, size_t new_start, - size_t cnt) + size_t n) WARN_UNUSED_RESULT; /* Working with "union value" arrays. */ @@ -156,7 +156,7 @@ caseproto_ref (const struct caseproto *proto_) static inline void caseproto_unref (struct caseproto *proto) { - if (proto != NULL && !--proto->ref_cnt) + if (proto != NULL && --proto->ref_cnt == 0) caseproto_free__ (proto); }