X-Git-Url: https://git.openssl.org/?p=openssl.git;a=blobdiff_plain;f=apps%2Ferrstr.c;h=4650379589df24231421af31affce22e07b6d231;hp=6d0f9d137be27a0615c1cf279e60fc035135300b;hb=7a2dfc2a20d5bfc92fd671e01eefa20c6bed7008;hpb=eda1f21f1af8b6f77327e7b37573af9c1ba73726 diff --git a/apps/errstr.c b/apps/errstr.c index 6d0f9d137b..4650379589 100644 --- a/apps/errstr.c +++ b/apps/errstr.c @@ -1,5 +1,5 @@ /* apps/errstr.c */ -/* Copyright (C) 1995-1997 Eric Young (eay@cryptsoft.com) +/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) * All rights reserved. * * This package is an SSL implementation written @@ -60,17 +60,17 @@ #include #include #include "apps.h" -#include "bio.h" -#include "lhash.h" -#include "err.h" -#include "ssl.h" +#include +#include +#include +#include #undef PROG #define PROG errstr_main -int MAIN(argc, argv) -int argc; -char **argv; +int MAIN(int, char **); + +int MAIN(int argc, char **argv) { int i,ret=0; char buf[256]; @@ -80,7 +80,7 @@ char **argv; if (bio_err == NULL) if ((bio_err=BIO_new(BIO_s_file())) != NULL) - BIO_set_fp(bio_err,stderr,BIO_NOCLOSE); + BIO_set_fp(bio_err,stderr,BIO_NOCLOSE|BIO_FP_TEXT); SSL_load_error_strings();