Changeset f658458 in mainline for uspace/srv/devman/devman.c
- Timestamp:
- 2010-05-02T20:49:09Z (15 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- bb864a0
- Parents:
- 25a7e11d
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/devman/devman.c
r25a7e11d rf658458 679 679 { 680 680 node_t *dev = tree->root_node; 681 // relative path to the device from its parent (but with '/' at the beginning) 681 682 char *rel_path = path; 682 683 char *next_path_elem = NULL; … … 685 686 686 687 while (cont && NULL != dev) { 687 next_path_elem = get_path_elem_end(rel_path +1);688 next_path_elem = get_path_elem_end(rel_path + 1); 688 689 if ('/' == next_path_elem[0]) { 689 690 cont = true; … … 693 694 } 694 695 695 dev = find_node_child(dev, rel_path );696 dev = find_node_child(dev, rel_path + 1); 696 697 697 698 if (cont) { 699 // restore the original path 698 700 next_path_elem[0] = '/'; 699 701 }
Note:
See TracChangeset
for help on using the changeset viewer.