From ee1ba3209993b72e90f5fe30a16ad951f1e2402d Mon Sep 17 00:00:00 2001 From: Lorenz Kästle Date: Thu, 17 Oct 2024 17:57:50 +0200 Subject: lib: clang-format --- lib/utils_cmd.h | 19 ++++++++----------- 1 file changed, 8 insertions(+), 11 deletions(-) (limited to 'lib/utils_cmd.h') diff --git a/lib/utils_cmd.h b/lib/utils_cmd.h index 061f5d4f..0fc09173 100644 --- a/lib/utils_cmd.h +++ b/lib/utils_cmd.h @@ -8,8 +8,7 @@ */ /** types **/ -struct output -{ +struct output { char *buf; /* output buffer */ size_t buflen; /* output buffer content length */ char **line; /* array of lines (points to buf) */ @@ -20,20 +19,18 @@ struct output typedef struct output output; /** prototypes **/ -int cmd_run (const char *, output *, output *, int); -int cmd_run_array (char *const *, output *, output *, int); -int cmd_file_read (char *, output *, int); +int cmd_run(const char *, output *, output *, int); +int cmd_run_array(char *const *, output *, output *, int); +int cmd_file_read(char *, output *, int); /* only multi-threaded plugins need to bother with this */ -void cmd_init (void); +void cmd_init(void); #define CMD_INIT cmd_init() /* possible flags for cmd_run()'s fourth argument */ -#define CMD_NO_ARRAYS 0x01 /* don't populate arrays at all */ -#define CMD_NO_ASSOC 0x02 /* output.line won't point to buf */ - - -void timeout_alarm_handler (int); +#define CMD_NO_ARRAYS 0x01 /* don't populate arrays at all */ +#define CMD_NO_ASSOC 0x02 /* output.line won't point to buf */ +void timeout_alarm_handler(int); #endif /* _UTILS_CMD_ */ -- cgit v1.2.3-74-g34f1