From a82666e997854e2fa34e33dbca5b27e5ebb0e62d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?King=20K=C3=A9vin?= Date: Tue, 26 Mar 2019 18:47:17 +0100 Subject: [PATCH] menu (minor): add space around operators for readability --- lib/menu.c | 31 +++++++++++++++---------------- 1 file changed, 15 insertions(+), 16 deletions(-) diff --git a/lib/menu.c b/lib/menu.c index 7eb089b..e1bef01 100644 --- a/lib/menu.c +++ b/lib/menu.c @@ -30,11 +30,11 @@ bool menu_handle_command(const char* line, const struct menu_command_t* command_list, size_t command_list_length) { // ensure line is not empty - if (!line || 0==strlen(line)) { + if (!line || 0 == strlen(line)) { return false; } // ensure command are available - if (NULL==command_list || 0==command_list_length) { + if (NULL == command_list || 0 == command_list_length) { return false; } @@ -49,29 +49,29 @@ bool menu_handle_command(const char* line, const struct menu_command_t* command_ // find corresponding command bool command_found = false; // remember if we found the corresponding command - for (size_t i=0; i