From: Björn Esser Date: Sat, 12 Jun 2021 17:05:07 +0000 (+0200) Subject: libmisc/salt.c: Use int pointer for YESCRYPT_salt_cost(). X-Git-Tag: v4.9~10^2~1 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F358%2Fhead;p=thirdparty%2Fshadow.git libmisc/salt.c: Use int pointer for YESCRYPT_salt_cost(). The corresponding functions for the other hash methods all take a pointer to an integer value as the only paramater, so this particular function should do so as well. Signed-off-by: Björn Esser --- diff --git a/libmisc/salt.c b/libmisc/salt.c index c35c67978..1bfa015b2 100644 --- a/libmisc/salt.c +++ b/libmisc/salt.c @@ -34,7 +34,7 @@ static /*@observer@*/const char *BCRYPT_salt_rounds (/*@null@*/int *prefered_rou #endif /* USE_BCRYPT */ #ifdef USE_YESCRYPT static /*@observer@*/const char *gensalt_yescrypt (void); -static /*@observer@*/const char *YESCRYPT_salt_cost (/*@null@*/long *prefered_rounds); +static /*@observer@*/const char *YESCRYPT_salt_cost (/*@null@*/int *prefered_cost); #endif /* USE_YESCRYPT */ #ifndef HAVE_L64A @@ -277,7 +277,7 @@ static /*@observer@*/const char *gensalt_bcrypt (void) /* * Return a salt prefix specifying the cost for the YESCRYPT method. */ -static /*@observer@*/const char *YESCRYPT_salt_cost (/*@null@*/long *prefered_cost) +static /*@observer@*/const char *YESCRYPT_salt_cost (/*@null@*/int *prefered_cost) { static char cost_prefix[5]; long cost;