diff options
| author | J08nY | 2017-10-14 13:51:47 +0200 |
|---|---|---|
| committer | J08nY | 2017-10-14 13:51:47 +0200 |
| commit | 4dece41c236a7e92ab04205e8b6e076a2514a528 (patch) | |
| tree | 81d01f854049a588cdd510deda3fc08a8f2e08c0 /src/ecgen.c | |
| parent | 80514f24dae8352f39f9a9e49c0d9afbd8edd432 (diff) | |
| download | ecgen-4dece41c236a7e92ab04205e8b6e076a2514a528.tar.gz ecgen-4dece41c236a7e92ab04205e8b6e076a2514a528.tar.zst ecgen-4dece41c236a7e92ab04205e8b6e076a2514a528.zip | |
Diffstat (limited to 'src/ecgen.c')
| -rw-r--r-- | src/ecgen.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/ecgen.c b/src/ecgen.c index 713ebbe..685d35f 100644 --- a/src/ecgen.c +++ b/src/ecgen.c @@ -24,12 +24,12 @@ * @copyright GPL v2.0 */ #include <pari/pari.h> -#include "misc/config.h" #include "cm/cm.h" #include "exhaustive/exhaustive.h" #include "invalid/invalid.h" #include "io/input.h" #include "io/output.h" +#include "misc/config.h" #include "util/timeout.h" const char *argp_program_version = @@ -70,10 +70,10 @@ bool init(void) { pari_ENDCATCH avma = ltop; // open outfile - if (!output_init(cfg)) return false; + if (!output_init()) return false; // open infile - if (!input_init(cfg)) return false; + if (!input_init()) return false; return true; } @@ -137,7 +137,7 @@ int quit(int status) { */ int main(int argc, char *argv[]) { // Parse cli args - memset(cfg, 0, sizeof(cfg_s)); + memset(cfg, 0, sizeof(config_t)); argp_parse(&argp, argc, argv, 0, 0, cfg); if (!init()) { |
