aboutsummaryrefslogtreecommitdiffstats
path: root/xenlog.c
diff options
context:
space:
mode:
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)