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.39-rc1~616^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=7d2de8d403d11ce9502d4dd3dbe49d63489e3271;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 5c3cfd64d8..b1eefb9e48 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,