From: Andre Noll Date: Thu, 28 Dec 2017 20:48:10 +0000 (+0100) Subject: gcrypt: Use ROUND_DOWN() macro. X-Git-Tag: v0.6.2~5^2~3 X-Git-Url: http://git.tue.mpg.de/?a=commitdiff_plain;h=ab98d5b8b03e0e2fdcf010fc8f6a6b0ab8f87564;p=paraslash.git gcrypt: Use ROUND_DOWN() macro. --- diff --git a/gcrypt.c b/gcrypt.c index b21cf722..8d6db349 100644 --- a/gcrypt.c +++ b/gcrypt.c @@ -406,7 +406,7 @@ int apc_get_pubkey(const char *key_file, struct asymmetric_key **result) ret = -E_SEXP_BUILD; goto release_n; } - ret = nr_scanned / 32 * 32; + ret = ROUND_DOWN(nr_scanned, 32); PARA_INFO_LOG("successfully read %d bit ssh public key\n", ret * 8); key = para_malloc(sizeof(*key)); key->num_bytes = ret;