From: Simon Josefsson Date: Fri, 7 Oct 2005 13:02:10 +0000 (+0000) Subject: Don't use error. X-Git-Tag: gnutls_1_2_8~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=57e2c6a8a4fa42dc6cab07919f24f2a4869f7e6c;p=thirdparty%2Fgnutls.git Don't use error. --- diff --git a/src/crypt.c b/src/crypt.c index cd26fcc6d1..8dbf967c65 100644 --- a/src/crypt.c +++ b/src/crypt.c @@ -62,8 +62,6 @@ void srptool_version(void) /* Gnulib portability files. */ #include -#include -const char *program_name = "srptool"; #define _MAX(x,y) (x>y?x:y) @@ -457,11 +455,11 @@ char *_srp_crypt(const char *username, const char *passwd, int salt_size, if ((unsigned) salt_size > sizeof(salt)) return NULL; - /* generate the salt + /* generate the salt */ if (gc_nonce (salt, salt_size) != GC_OK) { - error (0, 0, "could not create nonce"); + fprintf(stderr, "Could not create nonce\n"); return NULL; }