On 11/01/2022 15:12, Juergen Gross wrote:
> void xs_daemon_close(struct xs_handle *h)
> {
> - int fd = _xs_fileno(h);
> - struct xenbus_event *event, *next;
> - for (event = files[fd].dev; event; event = next)
> - {
> - next = event->next;
> - free(event);
> - }
> + close(_xs_fileno(h));
> }
You've deleted the sole caller of xs_daemon_close() from the main
close() function.
That said, I'm very confused, because nothing in minios declares it.
The declaration appears to come from xenstore.h, which is clearly
included unconditionally (when it ought not to be), but libxenstore also
defines the function too...
~Andrew