]> xenbits.xensource.com Git - xen.git/commit
tools/xenstore: simplify and rename check_event_node()
authorJuergen Gross <jgross@suse.com>
Thu, 11 Jun 2020 14:12:40 +0000 (16:12 +0200)
committerJan Beulich <jbeulich@suse.com>
Tue, 15 Dec 2020 13:43:07 +0000 (14:43 +0100)
commit06092d1f96354d75f91d2acd04c0c1232f2b9eec
tree9d240441835fd55a63b7ba4309d9db80bb567310
parent77d6b2b600dfcfe274ec6a553c3fa700c8b6cac5
tools/xenstore: simplify and rename check_event_node()

There is no path which allows to call check_event_node() without a
event name. So don't let the result depend on the name being NULL and
add an assert() covering that case.

Rename the function to check_special_event() to better match the
semantics.

This is part of XSA-115.

Signed-off-by: Juergen Gross <jgross@suse.com>
Reviewed-by: Julien Grall <jgrall@amazon.com>
Reviewed-by: Paul Durrant <paul@xen.org>
tools/xenstore/xenstored_watch.c