aboutsummaryrefslogtreecommitdiff
path: root/sysklogd
diff options
context:
space:
mode:
Diffstat (limited to 'sysklogd')
-rw-r--r--sysklogd/klogd.c3
-rw-r--r--sysklogd/logger.c17
-rw-r--r--sysklogd/syslogd.c3
3 files changed, 4 insertions, 19 deletions
diff --git a/sysklogd/klogd.c b/sysklogd/klogd.c
index 404e2275d..92590d209 100644
--- a/sysklogd/klogd.c
+++ b/sysklogd/klogd.c
@@ -17,6 +17,7 @@
17 * Licensed under the GPL v2 or later, see the file LICENSE in this tarball. 17 * Licensed under the GPL v2 or later, see the file LICENSE in this tarball.
18 */ 18 */
19 19
20#include "busybox.h"
20#include <stdio.h> 21#include <stdio.h>
21#include <stdlib.h> 22#include <stdlib.h>
22#include <signal.h> /* for our signal() handlers */ 23#include <signal.h> /* for our signal() handlers */
@@ -27,8 +28,6 @@
27#include <sys/syslog.h> 28#include <sys/syslog.h>
28#include <sys/klog.h> 29#include <sys/klog.h>
29 30
30#include "busybox.h"
31
32static void klogd_signal(int sig ATTRIBUTE_UNUSED) 31static void klogd_signal(int sig ATTRIBUTE_UNUSED)
33{ 32{
34 klogctl(7, NULL, 0); 33 klogctl(7, NULL, 0);
diff --git a/sysklogd/logger.c b/sysklogd/logger.c
index 0c6fb0845..ea093ed52 100644
--- a/sysklogd/logger.c
+++ b/sysklogd/logger.c
@@ -4,22 +4,10 @@
4 * 4 *
5 * Copyright (C) 1999-2004 by Erik Andersen <andersen@codepoet.org> 5 * Copyright (C) 1999-2004 by Erik Andersen <andersen@codepoet.org>
6 * 6 *
7 * This program is free software; you can redistribute it and/or modify 7 * Licensed under GPLv2 or later, see file LICENSE in this tarball for details.
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation; either version 2 of the License, or
10 * (at your option) any later version.
11 *
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 * General Public License for more details.
16 *
17 * You should have received a copy of the GNU General Public License
18 * along with this program; if not, write to the Free Software
19 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
20 *
21 */ 8 */
22 9
10#include "busybox.h"
23#include <stdio.h> 11#include <stdio.h>
24#include <unistd.h> 12#include <unistd.h>
25#include <sys/types.h> 13#include <sys/types.h>
@@ -28,7 +16,6 @@
28#include <string.h> 16#include <string.h>
29#include <stdlib.h> 17#include <stdlib.h>
30 18
31#include "busybox.h"
32#if !defined CONFIG_SYSLOGD 19#if !defined CONFIG_SYSLOGD
33 20
34#define SYSLOG_NAMES 21#define SYSLOG_NAMES
diff --git a/sysklogd/syslogd.c b/sysklogd/syslogd.c
index 2e2681b67..dfff75728 100644
--- a/sysklogd/syslogd.c
+++ b/sysklogd/syslogd.c
@@ -13,6 +13,7 @@
13 * Licensed under the GPL v2 or later, see the file LICENSE in this tarball. 13 * Licensed under the GPL v2 or later, see the file LICENSE in this tarball.
14 */ 14 */
15 15
16#include "busybox.h"
16#include <stdio.h> 17#include <stdio.h>
17#include <stdlib.h> 18#include <stdlib.h>
18#include <ctype.h> 19#include <ctype.h>
@@ -32,8 +33,6 @@
32#include <sys/un.h> 33#include <sys/un.h>
33#include <sys/param.h> 34#include <sys/param.h>
34 35
35#include "busybox.h"
36
37/* SYSLOG_NAMES defined to pull some extra junk from syslog.h */ 36/* SYSLOG_NAMES defined to pull some extra junk from syslog.h */
38#define SYSLOG_NAMES 37#define SYSLOG_NAMES
39#include <sys/syslog.h> 38#include <sys/syslog.h>