diff --git a/src/opts.c b/src/opts.c index c998a44..0674e7d 100644 --- a/src/opts.c +++ b/src/opts.c @@ -5,8 +5,9 @@ #include #include "error.h" +#include "util/intdef.h" -uint8_t getoptions(int32_t argc, char *const *argv, int32_t *ncpus) { +u8 getoptions(int argc, char *const *argv, int *ncpus) { uint8_t opts = 0; char opt; diff --git a/src/opts.h b/src/opts.h index 7568c9a..424b44f 100644 --- a/src/opts.h +++ b/src/opts.h @@ -1,6 +1,8 @@ #pragma once #include +#include "util/intdef.h" + enum opt { OPT_LIST_CORES = 1, // option that lists the total amount of cores that are set OPT_SET_ALL = 2, // option to set all cores, regardless of their assumed state @@ -8,4 +10,4 @@ enum opt { OPT_INVERT = 8, // 'num' now represents the amount of cores to disable }; -uint8_t getoptions(int32_t, char *const *, int32_t *); +u8 getoptions(int argc, char *const *argv, int *ncpus);