doc: Fix nonexistent error code in libxl_event_check example
PATCH 1/1 doc: Fix nonexistent error code in libxl_event_check example
Fix example code in comment. libxl_event_check() can returnERROR_NOT_READY; LIBXL_NOT_READY does not exist.
Signed-off-by Euan Harris <[email protected]>
--- tools/libxl/libxl_event.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
tools/libxl/libxl_event.h +1 -1
@@ -213,7 +213,7 @@ void libxl_evdisable_disk_eject(libxl_ctx *ctx, libxl_evgen_disk_eject*);* libxl_osevent_afterpoll(...); * for (;;) { * r = libxl_event_check(...); -* if (r==LIBXL_NOT_READY) break; +* if (r==ERROR_NOT_READY) break; * if (r) goto error_out; * do something with the event; * }
Signature · 1 line
2.4.3
Euan Harris writes ("[PATCH] doc: Fix nonexistent error code in libxl_event_check example"):
Quoted 4 lines
Fix example code in comment.
libxl_event_check()can returnERROR_NOT_READY;LIBXL_NOT_READYdoes not exist.Signed-off-by Euan Harris <[email protected]>
Acked-by Ian Jackson <[email protected]>
Committed-by Ian Jackson <[email protected]>