mirror of
https://github.com/amadvance/snapraid.git
synced 2026-12-04 05:40:14 -05:00
Extend the split function to support multiple delimiters
This commit is contained in:
parent
4cc1109444
commit
6053096862
3 changed files with 11 additions and 14 deletions
|
|
@ -101,7 +101,7 @@ static int devresolve_proc(uint64_t device, char* path, size_t path_size)
|
|||
break;
|
||||
|
||||
/* split the line */
|
||||
split_mac = split(split_map, 9, s);
|
||||
split_mac = split(split_map, 9, s, " \t\r\n");
|
||||
|
||||
/* if too short, it's the wrong line */
|
||||
if (split_mac < 9)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue