commit e02c8aeb20d649faee72d4418325d4d650ca0a05
parent 003ddc763e6b0b5c8478cb7dc52cfc2fb726ef73
Author: Benno Schulenberg <bensberg@telfort.nl>
Date: Sun, 24 Mar 2019 09:42:57 +0100
tweaks: adjust indentation after previous change, and rename a parameter
Diffstat:
1 file changed, 7 insertions(+), 7 deletions(-)
diff --git a/src/chars.c b/src/chars.c
@@ -638,16 +638,16 @@ char *mbrevstrpbrk(const char *head, const char *accept, const char *pointer)
#if defined(ENABLE_NANORC) && (!defined(NANO_TINY) || defined(ENABLE_JUSTIFY))
/* Return TRUE if the given string contains at least one blank character,
* and FALSE otherwise. */
-bool has_blank_char(const char *s)
+bool has_blank_char(const char *string)
{
- char symbol[MAXCHARLEN];
+ char symbol[MAXCHARLEN];
- while (*s != '\0') {
- s += parse_mbchar(s, symbol, NULL);
+ while (*string != '\0') {
+ string += parse_mbchar(string, symbol, NULL);
- if (is_blank_mbchar(symbol))
- return TRUE;
- }
+ if (is_blank_mbchar(symbol))
+ return TRUE;
+ }
return FALSE;
}