| 186 | |
| 187 | |
| 188 | struct test_table *find_cmd_entry(int cmd) |
| 189 | { |
| 190 | int i; |
| 191 | |
| 192 | for (i = 0; test_list[i].cmd != 0; i++) |
| 193 | if (test_list[i].cmd == cmd) |
| 194 | { |
| 195 | break; |
| 196 | } |
| 197 | |
| 198 | if (test_list[i].cmd == 0x00) |
| 199 | { |
| 200 | return NULL; |
| 201 | } |
| 202 | |
| 203 | return &test_list[i]; |
| 204 | } |
| 205 | |
| 206 | |
| 207 | /* Structure for hash table provided by uthash.h |