diff options
author | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2006-06-03 19:35:15 +0000 |
---|---|---|
committer | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2006-06-03 19:35:15 +0000 |
commit | deda6a5c0d00d02813cfda0d6262a24462909e9f (patch) | |
tree | cd2151ee74f7350abcbe692f8115e91547e08e15 /modutils/rmmod.c | |
parent | 2c351a8f9875a4b597641bc4c0da76db485fe184 (diff) | |
download | busybox-w32-deda6a5c0d00d02813cfda0d6262a24462909e9f.tar.gz busybox-w32-deda6a5c0d00d02813cfda0d6262a24462909e9f.tar.bz2 busybox-w32-deda6a5c0d00d02813cfda0d6262a24462909e9f.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.
Diffstat (limited to 'modutils/rmmod.c')
-rw-r--r-- | modutils/rmmod.c | 17 |
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 |
35 | static inline void filename2modname(char *modname, const char *afterslash) | 22 | static inline void filename2modname(char *modname, const char *afterslash) |