aboutsummaryrefslogtreecommitdiffstats
path: root/xenlog.c
diff options
context:
space:
mode:
authorkraxel <kraxel>2006-01-26 17:00:38 +0000
committerkraxel <kraxel>2006-01-26 17:00:38 +0000
commit22f7a6378b21e15d6d916b97430cdb9e84e507d7 (patch)
tree1ef31de56068225c646a40fa4352fe3409f28a04 /xenlog.c
parent8cefbcf1e028004efa70f2f1956fbc9d25c8b372 (diff)
downloadxenwatch-22f7a6378b21e15d6d916b97430cdb9e84e507d7.tar.gz
- mdns server first cut done.
Diffstat (limited to 'xenlog.c')
-rw-r--r--xenlog.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/xenlog.c b/xenlog.c
index d5ab4d0..af3bef5 100644
--- a/xenlog.c
+++ b/xenlog.c
@@ -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)