From 80514f24dae8352f39f9a9e49c0d9afbd8edd432 Mon Sep 17 00:00:00 2001 From: J08nY Date: Sat, 14 Oct 2017 13:25:47 +0200 Subject: Make config_t *cfg a global variable. The config is setup from parsing CLI options and then doesn't change for the whole duration of running ecgen, so it makes sense to make it a global variable. --- src/gen/field.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/gen/field.c') diff --git a/src/gen/field.c b/src/gen/field.c index 898af9e..020927c 100644 --- a/src/gen/field.c +++ b/src/gen/field.c @@ -104,7 +104,7 @@ GENERATOR(field_gen_once) { return 1; } - int inp = field_gen_input(curve, cfg, args, state); + int inp = field_gen_input(curve, args, state); if (inp > 0) { field = gclone(curve->field); curve_field = curve; -- cgit v1.2.3-70-g09d2