tools/xenstore: simplify and rename check_event_node()
authorJuergen Gross <jgross@suse.com>
Tue, 15 Dec 2020 12:34:42 +0000 (13:34 +0100)
committerJan Beulich <jbeulich@suse.com>
Tue, 15 Dec 2020 12:34:42 +0000 (13:34 +0100)
commitd3f8c086d23d886e2f5357b096bfefd5c8e5bcc4
tree044f8bff547e6f71e862bd06c822d29044097846
parent0bfb2101f243b27611ffec2087559d816d591e63
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