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.2~37 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=commitdiff_plain;h=3602096276194365d3e9874b0899701baf3327de basic: use for() loop instead of while() --- diff --git a/src/basic/gunicode.c b/src/basic/gunicode.c index 542110503..e6ac0545a 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)