X-Git-Url: http://git.ipfire.org/?a=blobdiff_plain;f=src%2Fshared%2Fuid-range.c;h=c38b7cc984a6d12cda912b930014da8994ae2c40;hb=53e1b683907c2f12330f00feb9630150196f064d;hp=079dd8752cceead399f81c0e8195ea8312a1848f;hpb=ad1a44b23bbc909aa3f5876dadd482a9f6c18d5c;p=thirdparty%2Fsystemd.git
diff --git a/src/shared/uid-range.c b/src/shared/uid-range.c
index 079dd8752cc..c38b7cc984a 100644
--- a/src/shared/uid-range.c
+++ b/src/shared/uid-range.c
@@ -1,5 +1,4 @@
-/*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/
-
+/* SPDX-License-Identifier: LGPL-2.1+ */
/***
This file is part of systemd.
@@ -19,9 +18,13 @@
along with systemd; If not, see .
***/
+#include
+#include
+#include
+
+#include "macro.h"
#include "uid-range.h"
#include "user-util.h"
-#include "util.h"
static bool uid_range_intersect(UidRange *range, uid_t start, uid_t nr) {
assert(range);
@@ -52,7 +55,7 @@ static void uid_range_coalesce(UidRange **p, unsigned *n) {
if (*n > j+1)
memmove(y, y+1, sizeof(UidRange) * (*n - j -1));
- (*n) --;
+ (*n)--;
j--;
}
}