From 3836cd2d2116881e494c47a5c47f97826198f2be Mon Sep 17 00:00:00 2001 From: Karel Zak Date: Tue, 6 Oct 2020 15:03:45 +0200 Subject: [PATCH] lib: add missing headers to .c files Signed-off-by: Karel Zak --- lib/buffer.c | 7 ++++++- lib/env.c | 7 +++---- lib/fileutils.c | 4 +++- lib/linux_version.c | 4 ++++ lib/pwdutils.c | 4 ++++ lib/swapprober.c | 7 ++++++- lib/timer.c | 3 +++ 7 files changed, 29 insertions(+), 7 deletions(-) diff --git a/lib/buffer.c b/lib/buffer.c index 258c892d52..26582119c2 100644 --- a/lib/buffer.c +++ b/lib/buffer.c @@ -1,4 +1,9 @@ - +/* + * No copyright is claimed. This code is in the public domain; do with + * it what you wish. + * + * Written by Karel Zak + */ #include "buffer.h" void ul_buffer_reset_data(struct ul_buffer *buf) diff --git a/lib/env.c b/lib/env.c index c26a5be3a4..7f706f03da 100644 --- a/lib/env.c +++ b/lib/env.c @@ -1,10 +1,9 @@ /* - * Security checks of environment - * Added from shadow-utils package - * by Arkadiusz Miśkiewicz + * environ[] array cleanup code and getenv() wappers * + * No copyright is claimed. This code is in the public domain; do with + * it what you wish. */ - #include #include #include diff --git a/lib/fileutils.c b/lib/fileutils.c index 3ca43c1fb5..003f890f93 100644 --- a/lib/fileutils.c +++ b/lib/fileutils.c @@ -1,7 +1,9 @@ /* + * This code is in the public domain; do with it what you wish. + * * Copyright (C) 2012 Sami Kerola + * Copyright (C) 2012-2020 Karel Zak */ - #include #include #include diff --git a/lib/linux_version.c b/lib/linux_version.c index 137bbe77e2..119869e5ec 100644 --- a/lib/linux_version.c +++ b/lib/linux_version.c @@ -1,3 +1,7 @@ +/* + * No copyright is claimed. This code is in the public domain; do with + * it what you wish. + */ #include #include diff --git a/lib/pwdutils.c b/lib/pwdutils.c index d5f4d2e232..d97020cb9c 100644 --- a/lib/pwdutils.c +++ b/lib/pwdutils.c @@ -1,3 +1,7 @@ +/* + * No copyright is claimed. This code is in the public domain; do with + * it what you wish. + */ #include #include "c.h" diff --git a/lib/swapprober.c b/lib/swapprober.c index aaf9ad0fa2..594496f252 100644 --- a/lib/swapprober.c +++ b/lib/swapprober.c @@ -1,4 +1,9 @@ - +/* + * No copyright is claimed. This code is in the public domain; do with + * it what you wish. + * + * Written by Karel Zak + */ #include "c.h" #include "nls.h" diff --git a/lib/timer.c b/lib/timer.c index c1ea54eb82..cfa18f6fde 100644 --- a/lib/timer.c +++ b/lib/timer.c @@ -1,4 +1,7 @@ /* + * No copyright is claimed. This code is in the public domain; do with + * it what you wish. + * * Please, don't add this file to libcommon because timers requires * -lrt on systems with old libc (and probably also -lpthread for static * build). -- 2.47.2