From: Nikos Mavrogiannopoulos Date: Mon, 14 Jun 2010 17:13:14 +0000 (+0200) Subject: Do not warn multiple times for the deprecation of --bits. X-Git-Tag: gnutls_2_11_3~180 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=d065ddda860cc897d28fbea7c1d007ee426f398a;p=thirdparty%2Fgnutls.git Do not warn multiple times for the deprecation of --bits. --- diff --git a/src/certtool.c b/src/certtool.c index 87c3a13f4f..7b81ff9814 100644 --- a/src/certtool.c +++ b/src/certtool.c @@ -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