| 309 | } |
| 310 | |
| 311 | static int |
| 312 | lsi_parse_portmask(const char *portmask) |
| 313 | { |
| 314 | char *end = NULL; |
| 315 | unsigned long pm; |
| 316 | |
| 317 | /* parse hexadecimal string */ |
| 318 | pm = strtoul(portmask, &end, 16); |
| 319 | if ((portmask[0] == '\0') || (end == NULL) || (*end != '\0')) |
| 320 | return 0; |
| 321 | |
| 322 | return pm; |
| 323 | } |
| 324 | |
| 325 | static unsigned int |
| 326 | lsi_parse_nqueue(const char *q_arg) |
no test coverage detected