From 715d17f47584845bae0334352e30cc6f8303d8ab Mon Sep 17 00:00:00 2001 From: Joachim Wiberg Date: Thu, 16 Nov 2023 07:16:01 +0100 Subject: [PATCH] statd: minor, cleanup, license headers Signed-off-by: Joachim Wiberg --- src/statd/Makefile | 1 + src/statd/shared.c | 2 ++ src/statd/shared.h | 2 ++ src/statd/statd.c | 1 - 4 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/statd/Makefile b/src/statd/Makefile index 8ae13c53..8a8eeb8f 100644 --- a/src/statd/Makefile +++ b/src/statd/Makefile @@ -1,4 +1,5 @@ CFLAGS += -Wall -Wextra -Werror +CPPFLAGS += -D_GNU_SOURCE LDLIBS += -lsysrepo -lev -lyang -ljansson -lite -lsrx TARGET = statd diff --git a/src/statd/shared.c b/src/statd/shared.c index 8d1aca8a..6db0d76b 100644 --- a/src/statd/shared.c +++ b/src/statd/shared.c @@ -1,3 +1,5 @@ +/* SPDX-License-Identifier: BSD-3-Clause */ + #include #include #include diff --git a/src/statd/shared.h b/src/statd/shared.h index 0ff966dd..7689ed73 100644 --- a/src/statd/shared.h +++ b/src/statd/shared.h @@ -1,3 +1,5 @@ +/* SPDX-License-Identifier: BSD-3-Clause */ + #ifndef STATD_SHARED_H_ #define STATD_SHARED_H_ diff --git a/src/statd/statd.c b/src/statd/statd.c index 5e033a5d..8cddaafd 100644 --- a/src/statd/statd.c +++ b/src/statd/statd.c @@ -1,4 +1,3 @@ -#define _GNU_SOURCE /* SPDX-License-Identifier: BSD-3-Clause */ #include