]> git.ipfire.org Git - pakfire.git/commitdiff
digests: Renumber them
authorMichael Tremer <michael.tremer@ipfire.org>
Sun, 17 Jul 2022 12:35:29 +0000 (12:35 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Sun, 17 Jul 2022 12:35:29 +0000 (12:35 +0000)
There is no need to use them as bitfields.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/libpakfire/include/pakfire/pakfire.h

index b901b8d502037e3fecdc79ee234f7b57fb1a2b29..c971c49e296f3ec7dd382c20db7f53e89d58f5aa 100644 (file)
@@ -31,9 +31,9 @@ struct pakfire;
 
 enum pakfire_digests {
        PAKFIRE_DIGEST_NONE   = 0,
-       PAKFIRE_DIGEST_SHA1   = 1 << 0,
-       PAKFIRE_DIGEST_SHA256 = 1 << 1,
-       PAKFIRE_DIGEST_SHA512 = 1 << 2,
+       PAKFIRE_DIGEST_SHA1   = 1,
+       PAKFIRE_DIGEST_SHA256 = 2,
+       PAKFIRE_DIGEST_SHA512 = 3,
 };
 
 #include <pakfire/key.h>