From 92bd9bda66884dbbb1f572f0cdf0063cea0b7d76 Mon Sep 17 00:00:00 2001 From: Joe Crayne Date: Sat, 12 Oct 2019 22:44:43 -0400 Subject: Applied debian patch to fix indentation warnings. 0015-fix-34-cases-of-Wmisleading-indentation-warnings.patch From: Jan Date: Sat, 2 Mar 2019 21:47:29 +0100 Subject: fix: 34 cases of -Wmisleading-indentation warnings - fixed misleading indentation as reported by gcc 8.2.0 --- str_chr.c | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) (limited to 'str_chr.c') diff --git a/str_chr.c b/str_chr.c index 9b467eb..a29d600 100644 --- a/str_chr.c +++ b/str_chr.c @@ -10,10 +10,18 @@ unsigned int str_chr(register const char *s,int c) ch = c; t = s; for (;;) { - if (!*t) break; if (*t == ch) break; ++t; - if (!*t) break; if (*t == ch) break; ++t; - if (!*t) break; if (*t == ch) break; ++t; - if (!*t) break; if (*t == ch) break; ++t; + if (!*t) break; + if (*t == ch) break; + ++t; + if (!*t) break; + if (*t == ch) break; + ++t; + if (!*t) break; + if (*t == ch) break; + ++t; + if (!*t) break; + if (*t == ch) break; + ++t; } return t - s; } -- cgit v1.2.3