summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorLadislav Michl <ladis@linux-mips.org>2008-01-09 16:36:19 +0100
committerSam Ravnborg <sam@ravnborg.org>2008-01-28 23:14:38 +0100
commit75ff4309cdb1d7303750aeed07a5d80382fe2e71 (patch)
tree6edd99e39d322bef8aa43cf6436b39066a077664 /scripts
parent2c81210a26fb84c0af6aad95f6ec1d61cf276cd0 (diff)
downloadlinux-75ff4309cdb1d7303750aeed07a5d80382fe2e71.tar.bz2
kconfig: fix whitespace and sort includes in conf.c
Sort includes and remove leading whitespace. Signed-off-by: Ladislav Michl <ladis@linux-mips.org> Signed-off-by: Sam Ravnborg <sam@ravnborg.org> Cc: Roman Zippel <zippel@linux-m68k.org
Diffstat (limited to 'scripts')
-rw-r--r--scripts/kconfig/conf.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/scripts/kconfig/conf.c b/scripts/kconfig/conf.c
index d4737d35e720..a3d2d0b564f4 100644
--- a/scripts/kconfig/conf.c
+++ b/scripts/kconfig/conf.c
@@ -4,11 +4,11 @@
*/
#include <ctype.h>
-#include <stdlib.h>
#include <stdio.h>
+#include <stdlib.h>
#include <string.h>
-#include <unistd.h>
#include <time.h>
+#include <unistd.h>
#include <sys/stat.h>
#define LKC_DIRECT_LINK
@@ -160,7 +160,7 @@ static int conf_askvalue(struct symbol *sym, const char *def)
}
case set_random:
do {
- val = (tristate)(random() % 3);
+ val = (tristate)(rand() % 3);
} while (!sym_tristate_within_range(sym, val));
switch (val) {
case no: line[0] = 'n'; break;