Subversion Repositories HelenOS

Rev

Rev 4220 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 4220 Rev 4490
Line 245... Line 245...
245
 */
245
 */
246
ofw_tree_node_t *ofw_tree_lookup(const char *path)
246
ofw_tree_node_t *ofw_tree_lookup(const char *path)
247
{
247
{
248
    char buf[NAME_BUF_LEN + 1];
248
    char buf[NAME_BUF_LEN + 1];
249
    ofw_tree_node_t *node = ofw_root;
249
    ofw_tree_node_t *node = ofw_root;
-
 
250
    size_t i;
250
    index_t i, j;
251
    size_t j;
251
   
252
   
252
    if (path[0] != '/')
253
    if (path[0] != '/')
253
        return NULL;
254
        return NULL;
254
   
255
   
255
    for (i = 1; (i < str_size(path)) && (node); i = j + 1) {
256
    for (i = 1; (i < str_size(path)) && (node); i = j + 1) {