aboutsummaryrefslogtreecommitdiff
path: root/modutils/rmmod.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/rmmod.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/rmmod.c')
-rw-r--r--modutils/rmmod.c17
1 files changed, 2 insertions, 15 deletions
diff --git a/modutils/rmmod.c b/modutils/rmmod.c
index 36bea3486..97650a4b2 100644
--- a/modutils/rmmod.c
+++ b/modutils/rmmod.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 <errno.h> 12#include <errno.h>
25#include <unistd.h> 13#include <unistd.h>
@@ -29,7 +17,6 @@
29#include <string.h> 17#include <string.h>
30#include <sys/utsname.h> 18#include <sys/utsname.h>
31#include <sys/syscall.h> 19#include <sys/syscall.h>
32#include "busybox.h"
33 20
34#ifdef CONFIG_FEATURE_2_6_MODULES 21#ifdef CONFIG_FEATURE_2_6_MODULES
35static inline void filename2modname(char *modname, const char *afterslash) 22static inline void filename2modname(char *modname, const char *afterslash)