From d7501eb2a98a0f3c2ddd1e9dbc3f8ae402e44e6b Mon Sep 17 00:00:00 2001 From: "Alexander \"Arav\" Andreev" Date: Fri, 7 Oct 2022 03:48:34 +0400 Subject: [PATCH] Changed formatting for parse_arguments(). --- src/main.c | 3 ++- src/main.h | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/main.c b/src/main.c index 63daeac..e4c4b10 100644 --- a/src/main.c +++ b/src/main.c @@ -23,7 +23,8 @@ int main(const int argc, const char * const * const argv) { return 0; } -int parse_arguments(const int argc, const char *const *const argv, price_t *const price, wattage_t *const wattage, interval_t *const interval) { +int parse_arguments(const int argc, const char * const * const argv, + price_t * const price, wattage_t * const wattage, interval_t * const interval) { if (argc < 2) return 1; for (int i = 1, pos = 0; i < argc; ++i) diff --git a/src/main.h b/src/main.h index 4d06567..d987387 100644 --- a/src/main.h +++ b/src/main.h @@ -7,7 +7,8 @@ typedef long double price_t; typedef long double wattage_t; typedef unsigned long interval_t; -int parse_arguments(const int argc, const char *const *const argv, price_t *const price, wattage_t *const wattage, interval_t *const interval); +int parse_arguments(const int argc, const char *const *const argv, + price_t * const price, wattage_t * const wattage, interval_t * const interval); inline interval_t interval_to_seconds(const char * const interval); inline price_t to_wattspersecond(const price_t price);