=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/openssl/errstr.c,v retrieving revision 1.10 retrieving revision 1.11 diff -c -r1.10 -r1.11 *** src/usr.bin/openssl/errstr.c 2023/03/06 14:32:06 1.10 --- src/usr.bin/openssl/errstr.c 2023/07/23 11:20:11 1.11 *************** *** 1,4 **** ! /* $OpenBSD: errstr.c,v 1.10 2023/03/06 14:32:06 tb Exp $ */ /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) * All rights reserved. * --- 1,4 ---- ! /* $OpenBSD: errstr.c,v 1.11 2023/07/23 11:20:11 tb Exp $ */ /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) * All rights reserved. * *************** *** 68,92 **** #include #include - static struct { - int stats; - } cfg; - static const struct option errstr_options[] = { - { - .name = "stats", - .desc = "Print debugging statistics for the hash table", - .type = OPTION_FLAG, - .opt.flag = &cfg.stats, - }, { NULL }, }; static void ! errstr_usage() { ! fprintf(stderr, "usage: errstr [-stats] errno ...\n"); ! options_usage(errstr_options); } int --- 68,81 ---- #include #include static const struct option errstr_options[] = { { NULL }, }; static void ! errstr_usage(void) { ! fprintf(stderr, "usage: errstr errno ...\n"); } int *************** *** 103,129 **** exit(1); } - memset(&cfg, 0, sizeof(cfg)); - if (options_parse(argc, argv, errstr_options, NULL, &argsused) != 0) { errstr_usage(); return (1); - } - - if (cfg.stats) { - BIO *out; - - if ((out = BIO_new_fp(stdout, BIO_NOCLOSE)) == NULL) { - fprintf(stderr, "Out of memory"); - return (1); - } - - lh_ERR_STRING_DATA_node_stats_bio(ERR_get_string_table(), out); - lh_ERR_STRING_DATA_stats_bio(ERR_get_string_table(), out); - lh_ERR_STRING_DATA_node_usage_stats_bio( - ERR_get_string_table(), out); - - BIO_free_all(out); } for (i = argsused; i < argc; i++) { --- 92,100 ----