| 246 | |
| 247 | |
| 248 | static struct test_table *find_cmd_entry(int cmd) |
| 249 | { |
| 250 | int i; |
| 251 | |
| 252 | for (i = 0; test_list[i].cmd != 0x00; i++) |
| 253 | if (test_list[i].cmd == cmd) |
| 254 | { |
| 255 | break; |
| 256 | } |
| 257 | |
| 258 | if (test_list[i].cmd == 0x00) |
| 259 | { |
| 260 | return NULL; |
| 261 | } |
| 262 | |
| 263 | return &test_list[i]; |
| 264 | } |
| 265 | |
| 266 | |
| 267 | /* Structure for hash table provided by uthash.h |