summaryrefslogtreecommitdiff
path: root/nest/a-set.c
diff options
context:
space:
mode:
authorMaria Matejka <mq@ucw.cz>2019-02-12 20:37:32 +0100
committerMaria Matejka <mq@ucw.cz>2019-02-20 22:30:54 +0100
commitdd4d409551ae22d0a9bf4e3a6edc6fb9656911b9 (patch)
tree3283934fce868201610b93dae7c07c818c9db3cb /nest/a-set.c
parentde12cd18fb213ee9cc872fec77b789f34cfd7cc4 (diff)
Filter: Merged postfixify routine
Diffstat (limited to 'nest/a-set.c')
-rw-r--r--nest/a-set.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/nest/a-set.c b/nest/a-set.c
index 78922ffd..1186eb56 100644
--- a/nest/a-set.c
+++ b/nest/a-set.c
@@ -69,14 +69,15 @@ int
ec_format(byte *buf, u64 ec)
{
u32 type, key, val;
- char tbuf[16], *kind;
+ char tbuf[16];
+ const char *kind;
type = ec >> 48;
kind = ec_subtype_str(type & 0xf0ff);
if (!kind) {
+ bsprintf(tbuf, "unknown 0x%x", type);
kind = tbuf;
- bsprintf(kind, "unknown 0x%x", type);
}
switch (ec >> 56)