From 6ce633b06be7155792728d6fdc9082613afcc55e Mon Sep 17 00:00:00 2001 From: Quinn Date: Wed, 20 Aug 2025 13:18:27 +0200 Subject: [PATCH] fix `opts.c` to use correct integer types --- src/opts.c | 3 ++- src/opts.h | 4 +++- 2 files changed, 5 insertions(+), 2 deletions(-) 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);