diff options
author | WANG Cong <xiyou.wangcong@gmail.com> | 2008-04-28 05:13:52 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2008-04-28 11:58:28 -0400 |
commit | 3af9c5bed1b8f284f3d7d479c77adf60ad059e91 (patch) | |
tree | 664894cd5bafda0899c50545953a4db534424d98 | |
parent | 16a26ef5ad31b59c521bd9becccaee84c0157326 (diff) |
arch/um/kernel/um_arch.c: some small improvements
Make some small improvements for arch/um/kernel/um_arch.c.
Signed-off-by: WANG Cong <xiyou.wangcong@gmail.com>
Acked-by: Jeff Dike <jdike@addtoit.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
-rw-r--r-- | arch/um/kernel/um_arch.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/arch/um/kernel/um_arch.c b/arch/um/kernel/um_arch.c index a6c1dd1cf5a1..56deed623446 100644 --- a/arch/um/kernel/um_arch.c +++ b/arch/um/kernel/um_arch.c | |||
@@ -115,7 +115,7 @@ static int have_root __initdata = 0; | |||
115 | /* Set in uml_mem_setup and modified in linux_main */ | 115 | /* Set in uml_mem_setup and modified in linux_main */ |
116 | long long physmem_size = 32 * 1024 * 1024; | 116 | long long physmem_size = 32 * 1024 * 1024; |
117 | 117 | ||
118 | static char *usage_string = | 118 | static const char *usage_string = |
119 | "User Mode Linux v%s\n" | 119 | "User Mode Linux v%s\n" |
120 | " available at http://user-mode-linux.sourceforge.net/\n\n"; | 120 | " available at http://user-mode-linux.sourceforge.net/\n\n"; |
121 | 121 | ||
@@ -202,7 +202,7 @@ static void __init uml_checksetup(char *line, int *add) | |||
202 | 202 | ||
203 | p = &__uml_setup_start; | 203 | p = &__uml_setup_start; |
204 | while (p < &__uml_setup_end) { | 204 | while (p < &__uml_setup_end) { |
205 | int n; | 205 | size_t n; |
206 | 206 | ||
207 | n = strlen(p->str); | 207 | n = strlen(p->str); |
208 | if (!strncmp(line, p->str, n) && p->setup_func(line + n, add)) | 208 | if (!strncmp(line, p->str, n) && p->setup_func(line + n, add)) |
@@ -258,7 +258,8 @@ int __init linux_main(int argc, char **argv) | |||
258 | { | 258 | { |
259 | unsigned long avail, diff; | 259 | unsigned long avail, diff; |
260 | unsigned long virtmem_size, max_physmem; | 260 | unsigned long virtmem_size, max_physmem; |
261 | unsigned int i, add; | 261 | unsigned int i; |
262 | int add; | ||
262 | char * mode; | 263 | char * mode; |
263 | 264 | ||
264 | for (i = 1; i < argc; i++) { | 265 | for (i = 1; i < argc; i++) { |