From ca275dc0e0cea84c514a86bd22d2fcf811e0f718 Mon Sep 17 00:00:00 2001 From: Philippe Proulx Date: Fri, 18 Mar 2016 16:47:25 -0400 Subject: [PATCH] Fix: templates: use prefix in _write_cstring() Signed-off-by: Philippe Proulx --- barectf/templates.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/barectf/templates.py b/barectf/templates.py index ca1e0b5..b338f9b 100644 --- a/barectf/templates.py +++ b/barectf/templates.py @@ -330,7 +330,7 @@ int {prefix}packet_is_open(void *ctx) }} static -void _write_cstring(struct barectf_ctx *ctx, const char *src) +void _write_cstring(struct {prefix}ctx *ctx, const char *src) {{ uint32_t sz = strlen(src) + 1; -- 2.34.1