Subversion Repositories HelenOS

Rev

Rev 2071 | Rev 3790 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 2071 Rev 2745
Line 59... Line 59...
59
 *
59
 *
60
 * @return Pointer to the property structure or NULL if no such property.
60
 * @return Pointer to the property structure or NULL if no such property.
61
 */
61
 */
62
ofw_tree_property_t *ofw_tree_getprop(const ofw_tree_node_t *node, const char *name)
62
ofw_tree_property_t *ofw_tree_getprop(const ofw_tree_node_t *node, const char *name)
63
{
63
{
64
    int i;
64
    unsigned int i;
65
   
65
   
66
    for (i = 0; i < node->properties; i++) {
66
    for (i = 0; i < node->properties; i++) {
67
        if (strcmp(node->property[i].name, name) == 0)
67
        if (strcmp(node->property[i].name, name) == 0)
68
            return &node->property[i];
68
            return &node->property[i];
69
    }
69
    }