Rev 3597 | Rev 4380 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 3597 | Rev 4377 | ||
---|---|---|---|
Line 176... | Line 176... | ||
176 | int len; |
176 | int len; |
177 | 177 | ||
178 | int idx_found; |
178 | int idx_found; |
179 | int num_found; |
179 | int num_found; |
180 | 180 | ||
181 | len = strlen(cmd_argv[0]); |
181 | len = str_length(cmd_argv[0]); |
182 | cmp_len = 1; |
182 | cmp_len = 1; |
183 | 183 | ||
184 | /* Silence warnings */ |
184 | /* Silence warnings */ |
185 | num_found = 0; |
185 | num_found = 0; |
186 | idx_found = 0; |
186 | idx_found = 0; |
Line 188... | Line 188... | ||
188 | while (cmp_len <= len + 1) { |
188 | while (cmp_len <= len + 1) { |
189 | 189 | ||
190 | num_found = 0; |
190 | num_found = 0; |
191 | i = 0; |
191 | i = 0; |
192 | while (cmd_table[i].name != NULL) { |
192 | while (cmd_table[i].name != NULL) { |
193 | if (strncmp(cmd_table[i].name, cmd_argv[0], cmp_len) == 0) { |
193 | if (str_lcmp(cmd_table[i].name, cmd_argv[0], cmp_len) == 0) { |
194 | idx_found = i; |
194 | idx_found = i; |
195 | ++num_found; |
195 | ++num_found; |
196 | } |
196 | } |
197 | ++i; |
197 | ++i; |
198 | } |
198 | } |