From be657530ee2fda8605eebf5c049f7eb7af078baf Mon Sep 17 00:00:00 2001 From: Oswald Buddenhagen Date: Mon, 14 Dec 2020 14:08:48 +0100 Subject: [PATCH] localize a variable more appropriately --- src/drv_proxy.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/drv_proxy.c b/src/drv_proxy.c index 82a3d0d..0cd9299 100644 --- a/src/drv_proxy.c +++ b/src/drv_proxy.c @@ -216,13 +216,11 @@ static @type@proxy_@name@( store_t *gctx@decl_args@, void (*cb)( @decl_cb_args@v debug( "\n" ); } //# END -//# DEFINE load_box_pre_print_cb_args - static char fbuf[as(Flags) + 1]; -//# END //# DEFINE load_box_print_fmt_cb_args , sts=%d, total=%d, recent=%d //# DEFINE load_box_print_pass_cb_args , sts, total_msgs, recent_msgs //# DEFINE load_box_print_cb_args if (sts == DRV_OK) { + static char fbuf[as(Flags) + 1]; for (message_t *msg = msgs; msg; msg = msg->next) debug( " uid=%-5u flags=%-4s size=%-6u tuid=%." stringify(TUIDL) "s\n", msg->uid, (msg->status & M_FLAGS) ? (proxy_make_flags( msg->flags, fbuf ), fbuf) : "?", msg->size, *msg->tuid ? msg->tuid : "?" );