Rudimentary phandle reference support.

This commit is contained in:
David Gibson
2005-06-16 17:04:00 +10:00
parent 4102d840d9
commit 81f2e89c75
7 changed files with 175 additions and 52 deletions

View File

@@ -598,7 +598,7 @@ static char *nodename_from_path(char *ppath, char *cpath)
if ((plen == 0) && streq(ppath, "/"))
return strdup(lslash+1);
if (strncmp(ppath, cpath, plen) != 0)
if (! strneq(ppath, cpath, plen))
return NULL;
return strdup(lslash+1);