From: Philippe Proulx Date: Fri, 18 Mar 2016 20:47:25 +0000 (-0400) Subject: Fix: templates: use prefix in _write_cstring() X-Git-Url: http://drtracing.org/?a=commitdiff_plain;h=ca275dc0e0cea84c514a86bd22d2fcf811e0f718;p=deliverable%2Fbarectf.git Fix: templates: use prefix in _write_cstring() Signed-off-by: Philippe Proulx --- 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;