chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
6cdd76b
)
basic: use for() loop instead of while()
author
Stefan Schweter
<stefan@schweter.it>
Wed, 12 Oct 2016 20:48:41 +0000
(22:48 +0200)
committer
Sven Eden
<yamakuzure@gmx.net>
Wed, 5 Jul 2017 06:50:55 +0000
(08:50 +0200)
src/basic/gunicode.c
patch
|
blob
|
history
diff --git
a/src/basic/gunicode.c
b/src/basic/gunicode.c
index 542110503f7f37cd6119e0a4c0918620ea4ef330..e6ac0545a4efc5c0e0d5fc3d0c34c71eda0a53f5 100644
(file)
--- a/
src/basic/gunicode.c
+++ b/
src/basic/gunicode.c
@@
-26,7
+26,7
@@
char *
utf8_prev_char (const char *p)
{
char *
utf8_prev_char (const char *p)
{
-
while (1
)
+
for (;;
)
{
p--;
if ((*p & 0xc0) != 0x80)
{
p--;
if ((*p & 0xc0) != 0x80)