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:05:53 +0000 (14:05 +0100)
commit4e298fa40781231ddc3f17e3e14e869c1c591722
tree01ce7f4ee8c49cd546c805099e975d9ac5595bd9
parent3beffb3ed0e999e38a6ff4dec042b38c23d77e48
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