From: Stefan Schweter Date: Wed, 12 Oct 2016 20:48:41 +0000 (+0200) Subject: basic: use for() loop instead of while() X-Git-Tag: v232~98^2~1 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=e7f1334f07e361290f3c682565963f8c0166f132;p=thirdparty%2Fsystemd.git basic: use for() loop instead of while() --- diff --git a/src/basic/gunicode.c b/src/basic/gunicode.c index 542110503f7..e6ac0545a4e 100644 --- a/src/basic/gunicode.c +++ b/src/basic/gunicode.c @@ -26,7 +26,7 @@ char * utf8_prev_char (const char *p) { - while (1) + for (;;) { p--; if ((*p & 0xc0) != 0x80)