From: Wayne Davison Date: Sun, 31 Jan 2021 17:28:34 +0000 (-0800) Subject: Put 0 in parens to silence an Xcode warning. X-Git-Tag: v3.2.4pre1~101 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=8c3de35b0b6c0e362ce7d33fd983dc828051ca12;p=thirdparty%2Frsync.git Put 0 in parens to silence an Xcode warning. --- diff --git a/lib/pool_alloc.c b/lib/pool_alloc.c index f6c6faf6..a1a7245f 100644 --- a/lib/pool_alloc.c +++ b/lib/pool_alloc.c @@ -9,8 +9,7 @@ struct alloc_pool size_t size; /* extent size */ size_t quantum; /* allocation quantum */ struct pool_extent *extents; /* top extent is "live" */ - void (*bomb)(); /* function to call if - * malloc fails */ + void (*bomb)(); /* called if malloc fails */ int flags; /* statistical data */ @@ -49,7 +48,7 @@ pool_create(size_t size, size_t quantum, void (*bomb)(const char*, const char*, { struct alloc_pool *pool; - if ((MINALIGN & (MINALIGN - 1)) != 0) { + if ((MINALIGN & (MINALIGN - 1)) != (0)) { if (bomb) (*bomb)("Compiler error: MINALIGN is not a power of 2", __FILE__, __LINE__); return NULL;