X-Git-Url: https://git.distorted.org.uk/~mdw/checkpath/blobdiff_plain/724621554ef66263f2530e17fd6d8f4074b6475c..7868d789c2b2f6a074b7fc14cd4dc482957c90b5:/path.c diff --git a/path.c b/path.c index 657abd1..f731e52 100644 --- a/path.c +++ b/path.c @@ -1,6 +1,6 @@ /* -*-c-*- * - * $Id: path.c,v 1.3 1999/05/21 22:07:20 mdw Exp $ + * $Id: path.c,v 1.4 2001/01/25 22:16:02 mdw Exp $ * * Check a path for safety * @@ -29,6 +29,9 @@ /*----- Revision history --------------------------------------------------* * * $Log: path.c,v $ + * Revision 1.4 2001/01/25 22:16:02 mdw + * Make flags be unsigned. + * * Revision 1.3 1999/05/21 22:07:20 mdw * Take advantage of new dynamic string macros. * @@ -75,13 +78,9 @@ struct elt { char e_name[1]; /* Name of the directory */ }; -enum { - f_sticky = 1 /* Directory has sticky bit set */ -}; +#define f_sticky 1u /* Directory has sticky bit set */ -enum { - f_last = 1 /* This is the final item to check */ -}; +#define f_last 1u /* This is the final item to check */ /*----- Static variables --------------------------------------------------*/