From e15d7573a1263fb364d1678c3a46be47a8b5e5ea Mon Sep 17 00:00:00 2001 From: Bernhard Reutner-Fischer Date: Fri, 2 Jun 2006 20:56:16 +0000 Subject: - move #include busybox.h to the very top so we pull in the config and eventual platform specific includes in early. --- sysklogd/klogd.c | 3 +-- sysklogd/logger.c | 17 ++--------------- sysklogd/syslogd.c | 3 +-- 3 files changed, 4 insertions(+), 19 deletions(-) (limited to 'sysklogd') 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 @@ * Licensed under the GPL v2 or later, see the file LICENSE in this tarball. */ +#include "busybox.h" #include #include #include /* for our signal() handlers */ @@ -27,8 +28,6 @@ #include #include -#include "busybox.h" - static void klogd_signal(int sig ATTRIBUTE_UNUSED) { 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 @@ * * Copyright (C) 1999-2004 by Erik Andersen * - * 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 2 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, write to the Free Software - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA - * + * Licensed under GPLv2 or later, see file LICENSE in this tarball for details. */ +#include "busybox.h" #include #include #include @@ -28,7 +16,6 @@ #include #include -#include "busybox.h" #if !defined CONFIG_SYSLOGD #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 @@ * Licensed under the GPL v2 or later, see the file LICENSE in this tarball. */ +#include "busybox.h" #include #include #include @@ -32,8 +33,6 @@ #include #include -#include "busybox.h" - /* SYSLOG_NAMES defined to pull some extra junk from syslog.h */ #define SYSLOG_NAMES #include -- cgit v1.2.3