Rev 3809 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 3809 | Rev 4264 | ||
---|---|---|---|
Line 62... | Line 62... | ||
62 | 62 | ||
63 | if (NULL == command) |
63 | if (NULL == command) |
64 | return -2; |
64 | return -2; |
65 | 65 | ||
66 | for (mod = modules; mod->name != NULL; mod++, i++) { |
66 | for (mod = modules; mod->name != NULL; mod++, i++) { |
67 | if (!strcmp(mod->name, command)) |
67 | if (!str_cmp(mod->name, command)) |
68 | return i; |
68 | return i; |
69 | } |
69 | } |
70 | 70 | ||
71 | return -1; |
71 | return -1; |
72 | } |
72 | } |
Line 79... | Line 79... | ||
79 | 79 | ||
80 | if (NULL == command) |
80 | if (NULL == command) |
81 | return -1; |
81 | return -1; |
82 | 82 | ||
83 | for(i=0; mod_aliases[i] != NULL; i+=2) { |
83 | for(i=0; mod_aliases[i] != NULL; i+=2) { |
84 | if (!strcmp(mod_aliases[i], command)) |
84 | if (!str_cmp(mod_aliases[i], command)) |
85 | return 1; |
85 | return 1; |
86 | } |
86 | } |
87 | 87 | ||
88 | return 0; |
88 | return 0; |
89 | } |
89 | } |
Line 95... | Line 95... | ||
95 | 95 | ||
96 | if (NULL == command) |
96 | if (NULL == command) |
97 | return (char *)NULL; |
97 | return (char *)NULL; |
98 | 98 | ||
99 | for(i=0; mod_aliases[i] != NULL; i++) { |
99 | for(i=0; mod_aliases[i] != NULL; i++) { |
100 | if (!strcmp(mod_aliases[i], command)) |
100 | if (!str_cmp(mod_aliases[i], command)) |
101 | return (char *)mod_aliases[++i]; |
101 | return (char *)mod_aliases[++i]; |
102 | i++; |
102 | i++; |
103 | } |
103 | } |
104 | 104 | ||
105 | return (char *)NULL; |
105 | return (char *)NULL; |