Make flags be unsigned.
[checkpath] / path.h
diff --git a/path.h b/path.h
index 51ff2d9..fc7478a 100644 (file)
--- a/path.h
+++ b/path.h
@@ -1,6 +1,6 @@
 /* -*-c-*-
  *
- * $Id: path.h,v 1.1 1999/04/06 20:12:07 mdw Exp $
+ * $Id: path.h,v 1.2 2001/01/25 22:16:02 mdw Exp $
  *
  * Check a path for safety
  *
 /*----- Revision history --------------------------------------------------* 
  *
  * $Log: path.h,v $
- * Revision 1.1  1999/04/06 20:12:07  mdw
- * Initial revision
+ * Revision 1.2  2001/01/25 22:16:02  mdw
+ * Make flags be unsigned.
+ *
+ * Revision 1.1.1.1  1999/04/06 20:12:07  mdw
+ * Import new project.
  *
  */
 
@@ -59,7 +62,7 @@ struct chkpath {
   gid_t cp_gid[NGROUPS_MAX + 1];       /* Array of groups that are OK */
   int cp_gids;                         /* Number of groups in the array */
   int cp_verbose;                      /* Verbosity level to spit up */
-  int cp_what;                         /* What things to check for */
+  unsigned cp_what;                    /* What things to check for */
   void (*cp_report)(int /*what*/, int /*verb*/,
                    const char */*dir*/, const char */*msg*/,
                    void */*p*/);
@@ -68,14 +71,14 @@ struct chkpath {
 
 /* --- Flags for `@what@' fields in the above --- */
 
-#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 */
+#define CP_ERROR 1u                    /* Error report */
+#define CP_WRWORLD 2u                  /* Check write by world */
+#define CP_WRGRP 4u                    /* Check write by any group */
+#define CP_WROTHGRP 8u                 /* Check write by other group */
+#define CP_WROTHUSR 16u                        /* Check write by other user */
+#define CP_SYMLINK 32u                 /* Report symbolic links */
+#define CP_REPORT 64u                  /* Make user-readable reports */
+#define CP_STICKYOK 128u               /* Don't care if sticky is set */
 
 /*----- Functions provided ------------------------------------------------*/