-#define CP_ERROR 1 /* Error report */
-#define CP_WRWORLD 2 /* Check write by world */
-#define CP_WRGRP 4 /* Check write by any group */
-#define CP_WROTHGRP 8 /* Check write by other group */
-#define CP_WROTHUSR 16 /* Check write by other user */
-#define CP_SYMLINK 32 /* Report symbolic links */
-#define CP_REPORT 64 /* Make user-readable reports */
-#define CP_STICKYOK 128 /* Don't care if sticky is set */
+/* Problem types */
+#define CP_PROBLEMS 0x1fu /* Mask of problem bits */
+#define CP_ERROR 0x01u /* Error report */
+#define CP_WRWORLD 0x02u /* Check write by world */
+#define CP_WRGRP 0x04u /* Check write by any group */
+#define CP_WROTHGRP 0x08u /* Check write by other group */
+#define CP_WROTHUSR 0x10u /* Check write by other user */
+
+/* Other flags */
+#define CP_SYMLINK 0x100u /* Report symbolic links */
+#define CP_REPORT 0x200u /* Make user-readable reports */
+#define CP_STICKYOK 0x400u /* Don't care if sticky is set */