From: David Cantrell Date: Thu, 9 Jun 2022 18:13:01 +0000 (+0100) Subject: change the default comparison method on Mac OS to suppress a warning that's going... X-Git-Tag: v2.38.1~30 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b334bff4347e8344c8e9f09c6d47dbd88fa69971;p=thirdparty%2Futil-linux.git change the default comparison method on Mac OS to suppress a warning that's going to fall back to memcmp --- diff --git a/misc-utils/hardlink.c b/misc-utils/hardlink.c index f77ee92628..b7eb342340 100644 --- a/misc-utils/hardlink.c +++ b/misc-utils/hardlink.c @@ -186,7 +186,11 @@ static struct options { size_t cache_size; } opts = { /* default setting */ +#ifdef __APPLE__ + .method = "memcmp", +#else .method = "sha256", +#endif .respect_mode = TRUE, .respect_owner = TRUE, .respect_time = TRUE,