X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=blobdiff_plain;f=lustre%2Fnodemap%2Fnodemap_handler.c;h=1f6853260e990b0f58bf3d331122355ecd5ee9b2;hp=48b3b8e58545f59042a4ada91a15f4eb4aa63b49;hb=98a4b7903611fd88de9e0452118488997065081b;hpb=55ba9897d156399ab4ccb1626866f87565a24cbe diff --git a/lustre/nodemap/nodemap_handler.c b/lustre/nodemap/nodemap_handler.c index 48b3b8e..1f68532 100644 --- a/lustre/nodemap/nodemap_handler.c +++ b/lustre/nodemap/nodemap_handler.c @@ -115,11 +115,11 @@ static void *nodemap_hs_key(cfs_hlist_node_t *hnode) static int nodemap_hs_keycmp(const void *key, cfs_hlist_node_t *compared_hnode) { - struct lu_nodemap *nodemap; + char *nodemap_name; - nodemap = nodemap_hs_key(compared_hnode); + nodemap_name = nodemap_hs_key(compared_hnode); - return !strcmp(key, nodemap->nm_name); + return !strcmp(key, nodemap_name); } static void *nodemap_hs_hashobject(cfs_hlist_node_t *hnode)