summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorMaria Matejka <mq@ucw.cz>2022-05-30 16:41:15 +0200
committerMaria Matejka <mq@ucw.cz>2022-05-30 16:41:15 +0200
commite16e1e4138cf10fd8f2508fa0e41e5ec98de6d53 (patch)
tree9c09bc2b7ebe25e072d47ec58d5841b25e4960b7 /lib
parent0097f24e2e8b3feb56d4ae5c5b56a8defd9f7d2e (diff)
parentf2f3163f6c3fba7f9ef03640d7b2f6323873d2cc (diff)
Merge commit 'f2f3163f6c3fba7f9ef03640d7b2f6323873d2cc' into haugesund
Diffstat (limited to 'lib')
-rw-r--r--lib/attrs.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/attrs.h b/lib/attrs.h
index fcb70230..d2638f3f 100644
--- a/lib/attrs.h
+++ b/lib/attrs.h
@@ -37,6 +37,8 @@ lp_store_adata(struct linpool *pool, const void *buf, uint len)
return ad;
}
+#define tmp_store_adata(buf, len) lp_store_adata(tmp_linpool, buf, len)
+
static inline int adata_same(const struct adata *a, const struct adata *b)
{ return (a->length == b->length && !memcmp(a->data, b->data, a->length)); }