diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/io/cli.c | 5 | ||||
| -rw-r--r-- | src/misc/config.h | 6 |
2 files changed, 4 insertions, 7 deletions
diff --git a/src/io/cli.c b/src/io/cli.c index aa9628a..7b7fca9 100644 --- a/src/io/cli.c +++ b/src/io/cli.c @@ -3,7 +3,7 @@ * Copyright (C) 2017-2018 J08nY */ #include "cli.h" -#include <misc/config.h> +#include "misc/config.h" #include <string.h> #include "exhaustive/ansi.h" #include "exhaustive/brainpool.h" @@ -179,9 +179,6 @@ static void cli_end(struct argp_state *state) { if (!cfg->thread_memory) { cfg->thread_memory = cfg->bits * 2000000; } - if (!cfg->points.type) { - cfg->points.type = POINTS_PRIME; - } cfg->format = FORMAT_JSON; } diff --git a/src/misc/config.h b/src/misc/config.h index 7db13de..4135f9e 100644 --- a/src/misc/config.h +++ b/src/misc/config.h @@ -14,11 +14,11 @@ enum field_e { FIELD_PRIME = 1 << 0, FIELD_BINARY = 1 << 1 }; enum format_e { FORMAT_JSON }; enum points_e { - POINTS_NONE = 0, - POINTS_PRIME, + POINTS_PRIME = 0, + POINTS_NONPRIME, POINTS_RANDOM, POINTS_ALL, - POINTS_NONPRIME + POINTS_NONE }; struct points_s { enum points_e type; |
