]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/libvirt.git/commit
virHashAddOrUpdateEntry: Turn @new_name into void *
authorMichal Privoznik <mprivozn@redhat.com>
Mon, 17 Aug 2015 19:07:40 +0000 (21:07 +0200)
committerMichal Privoznik <mprivozn@redhat.com>
Mon, 17 Aug 2015 21:25:01 +0000 (23:25 +0200)
commit890676d26b8a82d9840a59f3cb49a6f706a48cc5
tree6b05e96f64c8489fdcbb51ef0ddb2b41ebba3307
parent2b3fb38fab6b648d1a97bdb68ffd2c92872803c2
virHashAddOrUpdateEntry: Turn @new_name into void *

In 9190f0b0 we've tried to fix an OOM. And boy, was that fix
successful. But back then, the hash table implementation worked
strictly over string keys, which is not the case anymore. Hash
table have this function keyCopy() which returns void *.
Therefore a local variable that is temporarily holding the
intermediate return value from that function should be void *
too.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
src/util/virhash.c