]> git.ipfire.org Git - thirdparty/gnutls.git/commitdiff
Do not warn multiple times for the deprecation of --bits.
authorNikos Mavrogiannopoulos <nmav@gnutls.org>
Mon, 14 Jun 2010 17:13:14 +0000 (19:13 +0200)
committerNikos Mavrogiannopoulos <nmav@gnutls.org>
Mon, 14 Jun 2010 17:13:14 +0000 (19:13 +0200)
src/certtool.c

index 87c3a13f4f6506dc647346d8685833c0ecf309ee..7b81ff9814b798632ced409921c465ed072c421f 100644 (file)
@@ -204,7 +204,13 @@ int bits;
 
   if (info.bits != 0)
     {
-      fprintf(stderr, "** Note: Please use the --sec-param instead of --bits\n");
+      static int warned = 0;
+      
+      if (warned == 0) 
+        {
+          warned = 1;
+          fprintf(stderr, "** Note: Please use the --sec-param instead of --bits\n");
+        }
       bits = info.bits;
     }
   else