X-Git-Url: https://git.distorted.org.uk/u/mdw/catacomb/blobdiff_plain/863e75ffb7d4b4f4a73d11d489e47eab1d52c6f2..16efd15b675c87d22a4fd9fb12d7bb26f2a36031:/hashsum.c diff --git a/hashsum.c b/hashsum.c index db7d7f7..5776d93 100644 --- a/hashsum.c +++ b/hashsum.c @@ -1,6 +1,6 @@ /* -*-c-*- * - * $Id: hashsum.c,v 1.4 2000/08/04 23:23:44 mdw Exp $ + * $Id: hashsum.c,v 1.5 2000/12/06 20:33:27 mdw Exp $ * * Hash files using some secure hash function * @@ -30,6 +30,10 @@ /*----- Revision history --------------------------------------------------* * * $Log: hashsum.c,v $ + * Revision 1.5 2000/12/06 20:33:27 mdw + * Make flags be macros rather than enumerations, to ensure that they're + * unsigned. + * * Revision 1.4 2000/08/04 23:23:44 mdw * Various fixes. * @@ -82,16 +86,14 @@ static const gchash *hashtab[] = { 0 }; -enum { - f_binary = 1, - f_bogus = 2, - f_verbose = 4, - f_check = 8, - f_files = 16, - f_raw = 32, - f_oddhash = 64, - f_escape = 128 -}; +#define f_binary 1u +#define f_bogus 2u +#define f_verbose 4u +#define f_check 8u +#define f_files 16u +#define f_raw 32u +#define f_oddhash 64u +#define f_escape 128u /*----- Support functions -------------------------------------------------*/