]> git.ipfire.org Git - thirdparty/systemd.git/blobdiff - src/shared/base-filesystem.c
resolved: rework parsing of /etc/hosts
[thirdparty/systemd.git] / src / shared / base-filesystem.c
index 53091b80013ff70845117241ccdb4d48eb58c64b..89d7a7d59b685fe3488615818a9f879ced88222c 100644 (file)
@@ -1,9 +1,4 @@
 /* SPDX-License-Identifier: LGPL-2.1+ */
-/***
-  This file is part of systemd.
-
-  Copyright 2014 Kay Sievers
-***/
 
 #include <errno.h>
 #include <fcntl.h>
@@ -50,8 +45,8 @@ static const BaseFilesystem table[] = {
 
 int base_filesystem_create(const char *root, uid_t uid, gid_t gid) {
         _cleanup_close_ int fd = -1;
-        unsigned i;
         int r = 0;
+        size_t i;
 
         fd = open(root, O_RDONLY|O_NONBLOCK|O_DIRECTORY|O_CLOEXEC|O_NOFOLLOW);
         if (fd < 0)