aboutsummaryrefslogtreecommitdiff
path: root/modutils/lsmod.c
diff options
context:
space:
mode:
authoraldot <aldot@69ca8d6d-28ef-0310-b511-8ec308f3f277>2006-06-03 19:35:15 +0000
committeraldot <aldot@69ca8d6d-28ef-0310-b511-8ec308f3f277>2006-06-03 19:35:15 +0000
commitba086eee66e6ac97b1e5bcfb27acebcf961d9473 (patch)
treecd2151ee74f7350abcbe692f8115e91547e08e15 /modutils/lsmod.c
parentd7cb55c66766707c386ec67e57797d5a8dea14b0 (diff)
downloadbusybox-w32-ba086eee66e6ac97b1e5bcfb27acebcf961d9473.tar.gz
busybox-w32-ba086eee66e6ac97b1e5bcfb27acebcf961d9473.tar.bz2
busybox-w32-ba086eee66e6ac97b1e5bcfb27acebcf961d9473.zip
- move #include busybox.h to the very top so we pull in the config
and eventual platform specific includes in early. - remove two supposedly superfluous newlines from ...error_msg() in modprobe and use shorter boilerplate while at it. git-svn-id: svn://busybox.net/trunk/busybox@15272 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'modutils/lsmod.c')
-rw-r--r--modutils/lsmod.c17
1 files changed, 2 insertions, 15 deletions
diff --git a/modutils/lsmod.c b/modutils/lsmod.c
index 3bbf89e58..10af2bd0d 100644
--- a/modutils/lsmod.c
+++ b/modutils/lsmod.c
@@ -8,22 +8,10 @@
8 * Nicolas Ferre <nicolas.ferre@alcove.fr> to support pre 2.1 kernels 8 * Nicolas Ferre <nicolas.ferre@alcove.fr> to support pre 2.1 kernels
9 * (which lack the query_module() interface). 9 * (which lack the query_module() interface).
10 * 10 *
11 * This program is free software; you can redistribute it and/or modify 11 * Licensed under GPLv2 or later, see file LICENSE in this tarball for details.
12 * it under the terms of the GNU General Public License as published by
13 * the Free Software Foundation; either version 2 of the License, or
14 * (at your option) any later version.
15 *
16 * This program is distributed in the hope that it will be useful,
17 * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
19 * General Public License for more details.
20 *
21 * You should have received a copy of the GNU General Public License
22 * along with this program; if not, write to the Free Software
23 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
24 *
25 */ 12 */
26 13
14#include "busybox.h"
27#include <stdlib.h> 15#include <stdlib.h>
28#include <stdio.h> 16#include <stdio.h>
29#include <string.h> 17#include <string.h>
@@ -36,7 +24,6 @@
36#include <getopt.h> 24#include <getopt.h>
37#include <sys/utsname.h> 25#include <sys/utsname.h>
38#include <sys/file.h> 26#include <sys/file.h>
39#include "busybox.h"
40 27
41 28
42#ifndef CONFIG_FEATURE_CHECK_TAINTED_MODULE 29#ifndef CONFIG_FEATURE_CHECK_TAINTED_MODULE