Diff of /trunk/mkinitrd-magellan/busybox/e2fsprogs/old_e2fsprogs/e2p/ostype.c
Parent Directory | Revision Log | Patch
revision 815 by niro, Sat Sep 1 22:45:15 2007 UTC | revision 816 by niro, Fri Apr 24 18:33:46 2009 UTC | |
---|---|---|
# | Line 12 | Line 12 |
12 | #include <string.h> | #include <string.h> |
13 | #include <stdlib.h> | #include <stdlib.h> |
14 | ||
15 | static const char * const os_tab[] = | static const char *const os_tab[] = |
16 | { "Linux", | { "Linux", |
17 | "Hurd", | "Hurd", |
18 | "Masix", | "Masix", |
# | Line 42 char *e2p_os2string(int os_type) | Line 42 char *e2p_os2string(int os_type) |
42 | */ | */ |
43 | int e2p_string2os(char *str) | int e2p_string2os(char *str) |
44 | { | { |
45 | const char * const *cpp; | const char *const *cpp; |
46 | int i = 0; | int i = 0; |
47 | ||
48 | for (cpp = os_tab; *cpp; cpp++, i++) { | for (cpp = os_tab; *cpp; cpp++, i++) { |
|