]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
alloc-util: Remove unneeded stdlib.h include
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Tue, 6 May 2025 12:20:43 +0000 (14:20 +0200)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Fri, 9 May 2025 09:33:33 +0000 (11:33 +0200)
src/basic/alloc-util.h
src/basic/build-path.c
src/home/home-util.c

index 900e798b573c606f377ca5a9b140fbd48c9c252d..7cf10ef4f3c1996566cebc0632164cdea5542efe 100644 (file)
@@ -4,7 +4,6 @@
 #include <alloca.h>
 #include <malloc.h>
 #include <stddef.h>
-#include <stdlib.h>
 #include <string.h>
 
 #include "assert-util.h"
index 5d93bded4d3101ac31acbed442537da66df8a460..0341074cedc2b5ed57c0cc6773a2c2b91fe91727 100644 (file)
@@ -2,6 +2,7 @@
 
 #include <elf.h>
 #include <link.h>
+#include <stdlib.h>
 #include <sys/auxv.h>
 
 #include "build-path.h"
index 2e5343f096690539bb3ce05b2a3f03c8905bb2e2..b695c5a49dd876674411bfb2e566a9a322422f74 100644 (file)
@@ -1,5 +1,7 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 
+#include <stdlib.h>
+
 #include "alloc-util.h"
 #include "dns-domain.h"
 #include "fd-util.h"