lib/util: move copyright define to copyright.h
authorBjörn Jacke <bj@sernet.de>
Tue, 6 Jun 2023 15:25:35 +0000 (17:25 +0200)
committerAndrew Bartlett <abartlet@samba.org>
Mon, 20 Nov 2023 03:52:33 +0000 (03:52 +0000)
BUG: https://bugzilla.samba.org/show_bug.cgi?id=15377

Signed-off-by: Bjoern Jacke <bjacke@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
lib/util/copyright.h [new file with mode: 0644]
source3/include/includes.h
source3/include/smb.h
source4/include/includes.h

diff --git a/lib/util/copyright.h b/lib/util/copyright.h
new file mode 100644 (file)
index 0000000..a29f228
--- /dev/null
@@ -0,0 +1,28 @@
+/*
+   Unix SMB/CIFS implementation.
+
+   Copyright (C) Björn Jacke 2023
+
+   This program is free software; you can redistribute it and/or modify
+   it under the terms of the GNU General Public License as published by
+   the Free Software Foundation; either version 3 of the License, or
+   (at your option) any later version.
+
+   This program is distributed in the hope that it will be useful,
+   but WITHOUT ANY WARRANTY; without even the implied warranty of
+   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+   GNU General Public License for more details.
+
+   You should have received a copy of the GNU General Public License
+   along with this program.  If not, see <http://www.gnu.org/licenses/>.
+*/
+
+#ifndef __LIB_UTIL_COPYRIGHT_H__
+#define __LIB_UTIL_COPYRIGHT_H__
+
+/* logged when starting the various Samba daemons */
+#define COPYRIGHT_STARTUP_MESSAGE      "Copyright Andrew Tridgell and the Samba Team 1992-2023"
+
+#endif /* __LIB_UTIL_COPYRIGHT_H__ */
+
+
index 02beb0a0c88eeffdec2de54bc66db0e30ed4f701..8bb6ee888036ddb8bc5e869d9b830d027ee04aac 100644 (file)
@@ -242,6 +242,9 @@ enum timestamp_set_resolution {
 typedef char fstring[FSTRING_LEN];
 #endif
 
+/* copyright define */
+#include "../lib/util/copyright.h"
+
 /* debug.h need to be included before samba_util.h for the macro SMB_ASSERT */
 #include "../lib/util/debug.h"
 
index 487a8b316d82c899c64b430afa0d91f364178b75..81d761d2280a68757ab8bf2960026b1a8092d60f 100644 (file)
@@ -29,9 +29,6 @@
 #include "libcli/smb/smb_common.h"
 #include "libds/common/roles.h"
 
-/* logged when starting the various Samba daemons */
-#define COPYRIGHT_STARTUP_MESSAGE      "Copyright Andrew Tridgell and the Samba Team 1992-2023"
-
 #define LARGE_WRITEX_HDR_SIZE 65
 #define LARGE_WRITEX_BUFFER_SIZE (128*1024)
 
index e7abf1a24925a8794509be0391e2c91af3cf1333..8832b97ed02d8acf825e74e9ab218de3324b0f4d 100644 (file)
@@ -57,6 +57,9 @@
 #endif
 #include "../lib/util/attr.h"
 
+/* copyright define */
+#include "../lib/util/copyright.h"
+
 /* debug.h need to be included before samba_util.h for the macro SMB_ASSERT */
 #include "../lib/util/debug.h"
 #include "../lib/util/samba_util.h"