diff options
author | vhanquez@kneesa.uk.xensource.com <vhanquez@kneesa.uk.xensource.com> | 2006-01-11 12:01:37 +0000 |
---|---|---|
committer | vhanquez@kneesa.uk.xensource.com <vhanquez@kneesa.uk.xensource.com> | 2006-01-11 12:01:37 +0000 |
commit | d9014bb4aa1120f7024119a5719bccf8b45e7179 (patch) | |
tree | 6bd33d8ab2347e80a45b274e9d33957f484a8482 /tools/xenstore/xs.c | |
parent | 53ed6896f34e46734d1e2d681cb234440b41a94a (diff) | |
download | xen-d9014bb4aa1120f7024119a5719bccf8b45e7179.tar.gz xen-d9014bb4aa1120f7024119a5719bccf8b45e7179.tar.bz2 xen-d9014bb4aa1120f7024119a5719bccf8b45e7179.zip |
update xs_transaction_t to be a plain u32 integer instead of a fake pointer.
Signed-off-by: Vincent Hanquez <vincent@xensource.com>
Diffstat (limited to 'tools/xenstore/xs.c')
-rw-r--r-- | tools/xenstore/xs.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/tools/xenstore/xs.c b/tools/xenstore/xs.c index 8332e1aad5..f7a576119f 100644 --- a/tools/xenstore/xs.c +++ b/tools/xenstore/xs.c @@ -304,7 +304,7 @@ static void *xs_talkv(struct xs_handle *h, xs_transaction_t t, unsigned int i; struct sigaction ignorepipe, oldact; - msg.tx_id = (uint32_t)(unsigned long)t; + msg.tx_id = t; msg.req_id = 0; msg.type = type; msg.len = 0; @@ -634,21 +634,21 @@ bool xs_unwatch(struct xs_handle *h, const char *path, const char *token) /* Start a transaction: changes by others will not be seen during this * transaction, and changes will not be visible to others until end. * You can only have one transaction at any time. - * Returns NULL on failure. + * Returns XBT_NULL on failure. */ xs_transaction_t xs_transaction_start(struct xs_handle *h) { char *id_str; - unsigned long id; + xs_transaction_t id; id_str = xs_single(h, XBT_NULL, XS_TRANSACTION_START, "", NULL); if (id_str == NULL) - return NULL; + return XBT_NULL; id = strtoul(id_str, NULL, 0); free(id_str); - return (xs_transaction_t)id; + return id; } /* End a transaction. |