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 <besser82@fedoraproject.org>
This commit is contained in:
Björn Esser 2021-06-12 19:05:07 +02:00
parent a026ea6bbf
commit 7a3bb4d0ea
No known key found for this signature in database
GPG Key ID: F52E98007594C21D

View File

@ -34,7 +34,7 @@ static /*@observer@*/const char *BCRYPT_salt_rounds (/*@null@*/int *prefered_rou
#endif /* USE_BCRYPT */ #endif /* USE_BCRYPT */
#ifdef USE_YESCRYPT #ifdef USE_YESCRYPT
static /*@observer@*/const char *gensalt_yescrypt (void); 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 */ #endif /* USE_YESCRYPT */
#ifndef HAVE_L64A #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. * 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]; static char cost_prefix[5];
long cost; long cost;