apps/x590.c: harmonize usage of STDout and out_err.
authorAndy Polyakov <appro@openssl.org>
Sun, 12 Dec 2010 10:52:56 +0000 (10:52 +0000)
committerAndy Polyakov <appro@openssl.org>
Sun, 12 Dec 2010 10:52:56 +0000 (10:52 +0000)
PR: 2323

apps/x509.c

index dc9cd7707890a02dfa57a6be6f7b1f719e26e080..e402f6a4e00b2f5e3fc2f6ec6ddc36deb25e22d7 100644 (file)
@@ -288,7 +288,7 @@ int MAIN(int argc, char **argv)
                        days=atoi(*(++argv));
                        if (days == 0)
                                {
-                               BIO_printf(STDout,"bad number of days\n");
+                               BIO_printf(bio_err,"bad number of days\n");
                                goto bad;
                                }
                        }
@@ -912,7 +912,7 @@ bad:
                                }
                        else if (text == i)
                                {
-                               X509_print_ex(out,x,nmflag, certflag);
+                               X509_print_ex(STDout,x,nmflag, certflag);
                                }
                        else if (startdate == i)
                                {