projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2c81210
)
kconfig: fix whitespace and sort includes in conf.c
author
Ladislav Michl
<
[email protected]
>
Wed, 9 Jan 2008 15:36:19 +0000
(16:36 +0100)
committer
Sam Ravnborg
<
[email protected]
>
Mon, 28 Jan 2008 22:14:38 +0000
(23:14 +0100)
Sort includes and remove leading whitespace.
Signed-off-by: Ladislav Michl <
[email protected]
>
Signed-off-by: Sam Ravnborg <
[email protected]
>
Cc: Roman Zippel <
[email protected]
scripts/kconfig/conf.c
patch
|
blob
|
history
diff --git
a/scripts/kconfig/conf.c
b/scripts/kconfig/conf.c
index d4737d35e720d163b5f36332a0ebdde05a662b81..a3d2d0b564f4ff98dc08ad46feeb0be8219d705d 100644
(file)
--- 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)(rand
om
() % 3);
+ val = (tristate)(rand() % 3);
} while (!sym_tristate_within_range(sym, val));
switch (val) {
case no: line[0] = 'n'; break;