Skip to content

Commit

Permalink
Adapt selector type (key_value_t) for openwsman 2.5
Browse files Browse the repository at this point in the history
  • Loading branch information
kkaempf committed Jun 1, 2015
1 parent cf24db6 commit a878214
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/wsman.c
Original file line number Diff line number Diff line change
Expand Up @@ -880,7 +880,7 @@ int main(int argc, char **argv)
hnode_t *hn;
hash_t *selfilter = NULL;
hash_t *selectors_new = NULL;
selector_entry *entry;
key_value_t *entry;
selectors_new = hash_create2(HASHCOUNT_T_MAX, 0, 0);
selfilter = u_parse_query(wsm_filter);
if (!selfilter) {
Expand All @@ -889,9 +889,9 @@ int main(int argc, char **argv)
}
hash_scan_begin(&hs, selfilter);
while ((hn = hash_scan_next(&hs))) {
entry = u_malloc(sizeof(selector_entry));
entry = u_malloc(sizeof(key_value_t));
entry->type = 0;
entry->entry.text = (char *)hnode_get(hn);
entry->v.text = (char *)hnode_get(hn);
hash_alloc_insert(selectors_new, hnode_getkey(hn), entry);
}

Expand Down

0 comments on commit a878214

Please sign in to comment.