From: Stefan Schweter Date: Wed, 12 Oct 2016 20:48:41 +0000 (+0200) Subject: basic: use for() loop instead of while() X-Git-Tag: v234~965^2~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e7f1334f07e361290f3c682565963f8c0166f132;p=platform%2Fupstream%2Fsystemd.git basic: use for() loop instead of while() --- diff --git a/src/basic/gunicode.c b/src/basic/gunicode.c index 5421105..e6ac054 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)