]> git.ipfire.org Git - thirdparty/systemd.git/blobdiff - src/basic/gunicode.c
Merge pull request #8575 from keszybz/non-absolute-paths
[thirdparty/systemd.git] / src / basic / gunicode.c
index 542110503f7f37cd6119e0a4c0918620ea4ef330..8aff4a0fc509b8b1fead206a5f4f501ac1788130 100644 (file)
@@ -4,8 +4,6 @@
  *  Copyright 2000, 2005 Red Hat, Inc.
  */
 
-#include <stdlib.h>
-
 #include "gunicode.h"
 
 #define unichar uint32_t
@@ -26,7 +24,7 @@
 char *
 utf8_prev_char (const char *p)
 {
-  while (1)
+  for (;;)
     {
       p--;
       if ((*p & 0xc0) != 0x80)