History

kconfig: fix whitespace and sort includes in conf.c

Sort includes and remove leading whitespace.

Ladislav Michl committed 18 years ago

Commit 75ff4301 parent 2c812101 file · +3 −3Browse files

Unified · Split

scripts/kconfig/conf.c+3−3
@@ -4,11 +4,11 @@ · 3 unmodified lines
44 */
55
66 #include <ctype.h>
7−#include <stdlib.h>
87 #include <stdio.h>
8+#include <stdlib.h>
99 #include <string.h>
10−#include <unistd.h>
1110 #include <time.h>
11+#include <unistd.h>
1212 #include <sys/stat.h>
1313
1414 #define LKC_DIRECT_LINK
@@ -160,7 +160,7 @@ static int conf_askvalue(struct symbol *sym, const char *def) · 145 unmodified lines
160160 }
161161 case set_random:
162162 do {
163− val = (tristate)(random() % 3);
163+ val = (tristate)(rand() % 3);
164164 } while (!sym_tristate_within_range(sym, val));
165165 switch (val) {
166166 case no: line[0] = 'n'; break;

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t