Changeset f658458 in mainline for uspace/srv/devman/devman.c


Ignore:
Timestamp:
2010-05-02T20:49:09Z (15 years ago)
Author:
Lenka Trochtova <trochtova.lenka@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
bb864a0
Parents:
25a7e11d
Message:

parts of generic char interface, fixed some bugs

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/devman/devman.c

    r25a7e11d rf658458  
    679679{
    680680        node_t *dev = tree->root_node;
     681        // relative path to the device from its parent (but with '/' at the beginning)
    681682        char *rel_path = path;
    682683        char *next_path_elem = NULL;
     
    685686       
    686687        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);             
    688689                if ('/' == next_path_elem[0]) {
    689690                        cont = true;
     
    693694                }
    694695               
    695                 dev = find_node_child(dev, rel_path);           
     696                dev = find_node_child(dev, rel_path + 1);               
    696697               
    697698                if (cont) {
     699                        // restore the original path
    698700                        next_path_elem[0] = '/';
    699701                }
Note: See TracChangeset for help on using the changeset viewer.