From: Bartosz Golaszewski Date: Fri, 9 Dec 2022 09:26:08 +0000 (+0100) Subject: gpioset: put local variables of the same type on a single line X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=458ac155ec72f29a8ad43bbf41741fa31059ae7b;p=qemu-gpiodev%2Flibgpiod.git gpioset: put local variables of the same type on a single line Unless it hurts readability, try to keep the variables of the same type on the same line. Signed-off-by: Bartosz Golaszewski --- diff --git a/tools/gpioset.c b/tools/gpioset.c index 374fe72..a871a16 100644 --- a/tools/gpioset.c +++ b/tools/gpioset.c @@ -262,8 +262,7 @@ static enum gpiod_line_value parse_value(const char *option) static bool parse_line_values(int num_lines, char **lvs, char **lines, enum gpiod_line_value *values, bool interactive) { - char *value; - char *line; + char *value, *line; int i; for (i = 0; i < num_lines; i++) { @@ -569,8 +568,7 @@ static void print_interactive_help(void) */ static int split_words(char *line, int max_words, char **words) { - bool in_quotes = false; - bool in_word = false; + bool in_quotes = false, in_word = false; int num_words = 0; for (; (*line != '\0'); line++) {