diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/exhaustive/exhaustive.c | 1 | ||||
| -rw-r--r-- | src/gen/point.c | 5 | ||||
| -rw-r--r-- | src/io/config.h | 8 | ||||
| -rw-r--r-- | src/math/subgroups.h | 3 |
4 files changed, 10 insertions, 7 deletions
diff --git a/src/exhaustive/exhaustive.c b/src/exhaustive/exhaustive.c index d9b9a6a..768d0c4 100644 --- a/src/exhaustive/exhaustive.c +++ b/src/exhaustive/exhaustive.c @@ -96,7 +96,6 @@ static void exhaustive_ginit(gen_t *generators, const config_t *cfg) { case POINTS_NONE: generators[OFFSET_POINTS] = &gen_skip; break; - } } diff --git a/src/gen/point.c b/src/gen/point.c index 66a77d4..45e833b 100644 --- a/src/gen/point.c +++ b/src/gen/point.c @@ -3,10 +3,10 @@ * Copyright (C) 2017 J08nY */ #include "point.h" -#include "order.h" -#include "util/memory.h" #include "math/subgroups.h" +#include "order.h" #include "types.h" +#include "util/memory.h" point_t *point_new(void) { return try_calloc(sizeof(point_t)); } @@ -158,7 +158,6 @@ static int points_from_orders(curve_t *curve, const config_t *cfg, GEN orders) { return 1; } - GENERATOR(points_gen_trial) { if (!args) { fprintf(stderr, "No args to an arged function. points_gen_trial\n"); diff --git a/src/io/config.h b/src/io/config.h index b365987..271a60e 100644 --- a/src/io/config.h +++ b/src/io/config.h @@ -13,7 +13,13 @@ enum field_e { FIELD_PRIME, FIELD_BINARY }; enum format_e { FORMAT_JSON, FORMAT_CSV }; -enum points_e { POINTS_PRIME, POINTS_RANDOM, POINTS_ALL, POINTS_NONPRIME, POINTS_NONE }; +enum points_e { + POINTS_PRIME, + POINTS_RANDOM, + POINTS_ALL, + POINTS_NONPRIME, + POINTS_NONE +}; struct points_s { enum points_e type; size_t amount; diff --git a/src/math/subgroups.h b/src/math/subgroups.h index bd9b29d..42c81f7 100644 --- a/src/math/subgroups.h +++ b/src/math/subgroups.h @@ -35,5 +35,4 @@ GEN subgroups_nonprime(GEN order, const config_t *cfg); */ GEN subgroups_all(GEN order, const config_t *cfg); - -#endif //ECGEN_SUBGROUPS_H +#endif // ECGEN_SUBGROUPS_H |
