summaryrefslogtreecommitdiff
path: root/libbb/kernel_version.c
diff options
context:
space:
mode:
authorDenis Vlasenko2006-10-27 15:12:50 +0000
committerDenis Vlasenko2006-10-27 15:12:50 +0000
commitcf70433173663a5d627d2a049328cd580f7e9220 (patch)
tree6580456eb06acacd43ce8515a4719cc43be07184 /libbb/kernel_version.c
parent82f9e285132a89fb47895a385986a442fe7bb506 (diff)
downloadbusybox-cf70433173663a5d627d2a049328cd580f7e9220.zip
busybox-cf70433173663a5d627d2a049328cd580f7e9220.tar.gz
modprobe: reformat to match bbox style
Diffstat (limited to 'libbb/kernel_version.c')
-rw-r--r--libbb/kernel_version.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/libbb/kernel_version.c b/libbb/kernel_version.c
index e784a04..50b82ae 100644
--- a/libbb/kernel_version.c
+++ b/libbb/kernel_version.c
@@ -7,9 +7,6 @@
* Licensed under GPLv2 or later, see file LICENSE in this tarball for details.
*/
-#include <stdio.h>
-#include <string.h>
-#include <stdlib.h>
#include <sys/utsname.h> /* for uname(2) */
#include "libbb.h"
@@ -27,12 +24,12 @@ int get_linux_version_code(void)
if (uname(&name) == -1) {
bb_perror_msg("cannot get system information");
- return (0);
+ return 0;
}
s = name.release;
r = 0;
- for (i=0 ; i<3 ; i++) {
+ for (i = 0; i < 3; i++) {
r = r * 256 + atoi(strtok(s, "."));
s = NULL;
}