diff options
Diffstat (limited to 'xenlog.c')
-rw-r--r-- | xenlog.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -7,8 +7,8 @@ int main(int argc, char *argv[]) { - struct xs_handle *xenstore; - struct xs_transaction_handle *xst; + struct xs_handle *xenstore; + xs_transaction_t xst; char *xs_value = NULL, **vec; char *value; unsigned int count; @@ -29,7 +29,7 @@ int main(int argc, char *argv[]) switch (vec[XS_WATCH_PATH][0]) { case '/': xst = xs_transaction_start(xenstore); - if (NULL != xst) { + if (xst) { xs_value = xs_read(xenstore, xst, vec[XS_WATCH_PATH], NULL); xs_transaction_end(xenstore, xst, 0); if (NULL == xs_value) |