]> git.ipfire.org Git - thirdparty/gnutls.git/commitdiff
Don't use error.
authorSimon Josefsson <simon@josefsson.org>
Fri, 7 Oct 2005 13:02:10 +0000 (13:02 +0000)
committerSimon Josefsson <simon@josefsson.org>
Fri, 7 Oct 2005 13:02:10 +0000 (13:02 +0000)
src/crypt.c

index cd26fcc6d181a6f2d1ca84bfeecd4b2947ee10d2..8dbf967c65b5f22a9caa223655b2b78329cff862 100644 (file)
@@ -62,8 +62,6 @@ void srptool_version(void)
 
 /* Gnulib portability files. */
 #include <getpass.h>
-#include <error.h>
-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;
       }