aboutsummaryrefslogtreecommitdiffstats
path: root/xs_store.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 /xs_store.c
parent8cefbcf1e028004efa70f2f1956fbc9d25c8b372 (diff)
downloadxenwatch-22f7a6378b21e15d6d916b97430cdb9e84e507d7.tar.gz
- mdns server first cut done.
Diffstat (limited to 'xs_store.c')
-rw-r--r--xs_store.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/xs_store.c b/xs_store.c
index a3c5633..aa271db 100644
--- a/xs_store.c
+++ b/xs_store.c
@@ -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);