Changeset 0832b4d in mainline
- Timestamp:
- 2009-01-16T16:14:27Z (16 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 8ea0308
- Parents:
- 6cd3e8a
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
boot/genarch/ofw_tree.c
r6cd3e8a r0832b4d 83 83 static char path[MAX_PATH_LEN+1]; 84 84 static char name[OFW_TREE_PROPERTY_MAX_NAMELEN]; 85 static char name2[OFW_TREE_PROPERTY_MAX_NAMELEN]; 85 86 phandle peer; 86 87 phandle child; … … 140 141 */ 141 142 name[0] = '\0'; 142 while (ofw_next_property(current, name, name ) == 1)143 while (ofw_next_property(current, name, name2) == 1) { 143 144 current_node->properties++; 144 145 memcpy(name, name2, OFW_TREE_PROPERTY_MAX_NAMELEN); 146 } 147 145 148 if (!current_node->properties) 146 149 return; … … 154 157 155 158 name[0] = '\0'; 156 for (i = 0; ofw_next_property(current, name, name ) == 1; i++) {159 for (i = 0; ofw_next_property(current, name, name2) == 1; i++) { 157 160 size_t size; 158 161 … … 160 163 break; 161 164 165 memcpy(name, name2, OFW_TREE_PROPERTY_MAX_NAMELEN); 162 166 memcpy(current_node->property[i].name, name, 163 167 OFW_TREE_PROPERTY_MAX_NAMELEN);
Note:
See TracChangeset
for help on using the changeset viewer.