summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTechnion <technion@lolware.net>2015-01-04 21:48:11 +0000
committerTechnion <technion@lolware.net>2015-01-04 21:48:11 +0000
commit2077980fb15f3196a49f7891a13d9dd268b6d890 (patch)
tree29a89aa87bdbbb070943b06f32445ec6c660462d
parent03000b074f2527bf0969759b6359ca3493778926 (diff)
Revert #23
-rw-r--r--crypto_scrypt-nosse.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/crypto_scrypt-nosse.c b/crypto_scrypt-nosse.c
index 311e84a..12c860f 100644
--- a/crypto_scrypt-nosse.c
+++ b/crypto_scrypt-nosse.c
@@ -228,7 +228,7 @@ smix(uint8_t * B, size_t r, uint64_t N, uint32_t * V, uint32_t * XY)
* must satisfy r * p < 2^30 and buflen <= (2^32 - 1) * 32. The parameter N
* must be a power of 2 greater than 1.
*
- * Return 0 on success; or error code defined by errno.h.
+ * Return 0 on success; or -1 on error
*/
int
libscrypt_scrypt(const uint8_t * passwd, size_t passwdlen,
@@ -338,5 +338,5 @@ err1:
free(B0);
err0:
/* Failure! */
- return (errno);
+ return (-1);
}