Skip to contentSkip to conversation

doc: Fix nonexistent error code in libxl_event_check example

PATCH In review Euan Harris 2 participants 2 messages Jul 2, 2015

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 doc: Fix nonexistent error code in libxl_event_check example

Fix example code in comment. libxl_event_check() can return
ERROR_NOT_READY; LIBXL_NOT_READY does not exist.

---
 tools/libxl/libxl_event.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
tools/libxl/libxl_event.h +1 -1
index 3c6fcfe..fad4c14 100644
@@ -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