summaryrefslogtreecommitdiff
path: root/apps/gendh.c
diff options
context:
space:
mode:
authorBen Laurie <ben@openssl.org>1999-06-03 18:04:04 +0000
committerBen Laurie <ben@openssl.org>1999-06-03 18:04:04 +0000
commitb4f76582d4b834fb4e525d500c03ad38f0cea328 (patch)
tree7fbf127b998ad9bfff23ee0fbb45dd44c7448810 /apps/gendh.c
parent213a75dbf21b8f641a9ee90cc12882fc429bb84b (diff)
downloadopenssl-new-b4f76582d4b834fb4e525d500c03ad38f0cea328.tar.gz
More evil cast removal.
Diffstat (limited to 'apps/gendh.c')
-rw-r--r--apps/gendh.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/apps/gendh.c b/apps/gendh.c
index b3c19581d3..e5cb646bfb 100644
--- a/apps/gendh.c
+++ b/apps/gendh.c
@@ -74,7 +74,7 @@
#undef PROG
#define PROG gendh_main
-static void MS_CALLBACK dh_cb(int p, int n, char *arg);
+static void MS_CALLBACK dh_cb(int p, int n, void *arg);
static long dh_load_rand(char *names);
int MAIN(int argc, char **argv)
{
@@ -164,7 +164,7 @@ bad:
BIO_printf(bio_err,"Generating DH parameters, %d bit long strong prime, generator of %d\n",num,g);
BIO_printf(bio_err,"This is going to take a long time\n");
- dh=DH_generate_parameters(num,g,dh_cb,(char *)bio_err);
+ dh=DH_generate_parameters(num,g,dh_cb,bio_err);
if (dh == NULL) goto end;
@@ -184,7 +184,7 @@ end:
EXIT(ret);
}
-static void MS_CALLBACK dh_cb(int p, int n, char *arg)
+static void MS_CALLBACK dh_cb(int p, int n, void *arg)
{
char c='*';