
23 Jun
2008
23 Jun
'08
11:19 p.m.
Dan Smith wrote:
DS> +bool infostore_set_u64(struct infostore_ctx *ctx, const char *key, uint64_t val) DS> +{ DS> + char *sval = NULL; DS> + DS> + if (asprintf(&sval, "%" PRIu64, val) == -1) { DS> + CU_DEBUG("Failed to format u64 string"); DS> + sval = NULL; DS> + goto out; DS> + } DS> + DS> + xpath_set_string(ctx, key, sval); DS> + out: DS> + free(sval); DS> + DS> + return false; DS> +}
Looks like I forgot to refresh the patch before sending it out. It's fixed locally, I promise :)
Cool, then +1 for me. =) -- Kaitlin Rupert IBM Linux Technology Center kaitlin@linux.vnet.ibm.com