]> git.ipfire.org Git - thirdparty/rsync.git/commitdiff
Move the CSUM defines.
authorWayne Davison <wayne@opencoder.net>
Tue, 2 Jun 2020 01:49:15 +0000 (18:49 -0700)
committerWayne Davison <wayne@opencoder.net>
Tue, 2 Jun 2020 01:49:15 +0000 (18:49 -0700)
checksum.c
lib/mdigest.h

index d6a91e7ce1750af3bf5d0cb52b55ea40c9198d06..d7b2ebdd50c21adb34d8040bf4d9eaeb2f42baeb 100644 (file)
@@ -38,14 +38,6 @@ extern int protocol_version;
 extern int proper_seed_order;
 extern const char *checksum_choice;
 
-#define CSUM_NONE 0
-#define CSUM_MD4_ARCHAIC 1
-#define CSUM_MD4_BUSTED 2
-#define CSUM_MD4_OLD 3
-#define CSUM_MD4 4
-#define CSUM_MD5 5
-#define CSUM_XXH64 6
-
 struct name_num_obj valid_checksums = {
        "checksum", NULL, NULL, 0, 0, {
 #ifdef SUPPORT_XXHASH
index e543d6f3a8d6d2ddd148cd0ed782ab7cf79f56f9..c3d22baa758788a52b946741c1e2144e50e5c959 100644 (file)
 
 #define CSUM_CHUNK 64
 
+#define CSUM_NONE 0
+#define CSUM_MD4_ARCHAIC 1
+#define CSUM_MD4_BUSTED 2
+#define CSUM_MD4_OLD 3
+#define CSUM_MD4 4
+#define CSUM_MD5 5
+#define CSUM_XXH64 6
+
 typedef struct {
        uint32 A, B, C, D;
        uint32 totalN;          /* bit count, lower 32 bits */