From: Chip Black Date: Sat, 23 Nov 2013 20:47:21 +0000 (-0600) Subject: Fix a couple of lingering printfs X-Git-Tag: v1.9~41 X-Git-Url: http://git.bytex64.net/?a=commitdiff_plain;h=98f1ef5611188a4ba79757c55b13b987d9858028;p=blerg.git Fix a couple of lingering printfs --- diff --git a/common/auth.c b/common/auth.c index 3fd0376..439e2ad 100644 --- a/common/auth.c +++ b/common/auth.c @@ -37,7 +37,7 @@ int auth_set_password(const char *username, const char *password) { r = crypto_scrypt(password, n, salt, SCRYPT_SALT_SIZE, SCRYPT_N, SCRYPT_r, SCRYPT_p, pwhash, SCRYPT_OUTPUT_SIZE); if (r != 0) { - printf("Failure in scrypt for %s\n", username); + fprintf(stderr, "Failure in scrypt for %s\n", username); return 0; } @@ -158,7 +158,7 @@ int auth_check_password_v1(const char *username, const char *password) { r = crypto_scrypt(password, strlen(password), esalt, SCRYPT_SALT_SIZE, SCRYPT_N, SCRYPT_r, SCRYPT_p, givenpw, SCRYPT_OUTPUT_SIZE); if (r != 0) { - printf("Failure in scrypt for %s\n", username); + fprintf(stderr, "Failure in scrypt for %s\n", username); return 0; }