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 /xs_store.c | |
parent | 8cefbcf1e028004efa70f2f1956fbc9d25c8b372 (diff) | |
download | xenwatch-22f7a6378b21e15d6d916b97430cdb9e84e507d7.tar.gz |
- mdns server first cut done.
Diffstat (limited to 'xs_store.c')
-rw-r--r-- | xs_store.c | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -190,7 +190,7 @@ static struct xs_node* node_add_child(XenStore *st, struct xs_node *node, char * static void node_add_children(XenStore *st, struct xs_node *node) { - struct xs_transaction_handle *xst; + xs_transaction_t xst; struct xs_node *child; unsigned int i,num; char **list; @@ -200,7 +200,7 @@ static void node_add_children(XenStore *st, struct xs_node *node) if (NULL == st->xenstore) return; - if (NULL == (xst = xs_transaction_start(st->xenstore))) { + if (!(xst = xs_transaction_start(st->xenstore))) { fprintf(stderr,"Oops, can't start transaction\n"); return; } @@ -300,7 +300,7 @@ static gboolean watch_trigger(GIOChannel *source, GIOCondition condition, GtkTreePath *path = NULL; GtkTreeIter iter; char **vec = NULL, *h, *name = NULL; - struct xs_transaction_handle *xst; + xs_transaction_t xst; unsigned int count; struct xs_node *node; char *xs_value = NULL; @@ -320,7 +320,7 @@ static gboolean watch_trigger(GIOChannel *source, GIOCondition condition, goto out; } - if (NULL == (xst = xs_transaction_start(st->xenstore))) + if (!(xst = xs_transaction_start(st->xenstore))) goto out; xs_value = xs_read(st->xenstore, xst, vec[XS_WATCH_PATH], NULL); xs_transaction_end(st->xenstore, xst, 0); @@ -538,7 +538,7 @@ xenstore_get_value(GtkTreeModel *tree_model, { XenStore *st = XENSTORE(tree_model); enum xenstore_cols column = index; - struct xs_transaction_handle *xst; + xs_transaction_t xst; struct xs_node *node = iter->user_data; char *xs_value; @@ -554,7 +554,7 @@ xenstore_get_value(GtkTreeModel *tree_model, g_value_set_string(value, node->xs_path); break; case XENSTORE_COL_VALUE: - if (NULL == (xst = xs_transaction_start(st->xenstore))) + if (!(xst = xs_transaction_start(st->xenstore))) break; xs_value = xs_read(st->xenstore, xst, node->xs_path, NULL); g_value_init(value, G_TYPE_STRING); |