diff options
author | kraxel <kraxel> | 2006-01-26 17:00:38 +0000 |
---|---|---|
committer | kraxel <kraxel> | 2006-01-26 17:00:38 +0000 |
commit | 22f7a6378b21e15d6d916b97430cdb9e84e507d7 (patch) | |
tree | 1ef31de56068225c646a40fa4352fe3409f28a04 /xenlog.c | |
parent | 8cefbcf1e028004efa70f2f1956fbc9d25c8b372 (diff) | |
download | xenwatch-22f7a6378b21e15d6d916b97430cdb9e84e507d7.tar.gz |
- mdns server first cut done.
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) |