From b3727fcf0b55dfaf947d3becc0beccdf02b7c267 Mon Sep 17 00:00:00 2001 From: Joachim Nilsson Date: Wed, 23 Oct 2019 10:35:47 +0200 Subject: [PATCH] Simplify copyright[] and sccsid[] legacy from BSD Signed-off-by: Joachim Nilsson --- src/syslogd.c | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/src/syslogd.c b/src/syslogd.c index eedf320..c71d3eb 100644 --- a/src/syslogd.c +++ b/src/syslogd.c @@ -29,15 +29,13 @@ * SUCH DAMAGE. */ -#if !defined(lint) && !defined(NO_SCCS) -char copyright2[] = - "@(#) Copyright (c) 1983, 1988 Regents of the University of California.\n\ - All rights reserved.\n"; -#endif /* not lint */ - -#if !defined(lint) && !defined(NO_SCCS) -static char sccsid[] = "@(#)syslogd.c 5.27 (Berkeley) 10/10/88"; -#endif /* not lint */ +#ifndef lint +static const char copyright[] __attribute__((unused)) = + "@(#) Copyright (c) 1983, 1988, 1993\n\ + The Regents of the University of California. All rights reserved.\n"; +static char sccsid[] __attribute__((unused)) = + "@(#)syslogd.c 5.27 (Berkeley) 10/10/88"; +#endif /* * syslogd -- log system messages