0
0
mirror of https://gitlab.nic.cz/labs/bird.git synced 2024-12-23 02:01:55 +00:00

Small change in birdtest.h

Thanks to Martin Mares.
This commit is contained in:
Pavel Tvrdík 2015-11-03 09:26:38 +01:00
parent f12f9d9131
commit 3b59d07582

View File

@ -150,8 +150,7 @@ void bt_strncat_(char *buf, size_t buf_size, const char *str, ...);
#define bt_print_result_line(fn, in, out, fn_out, in_fmt, out_fmt, result) \ #define bt_print_result_line(fn, in, out, fn_out, in_fmt, out_fmt, result) \
do \ do \
{ \ { \
char buf[BT_BUFFER_SIZE]; \ char buf[BT_BUFFER_SIZE] = ""; \
bzero(buf, sizeof(buf)); \
snprintf(buf, sizeof(buf), "%s(", #fn); \ snprintf(buf, sizeof(buf), "%s(", #fn); \
bt_dump(buf, in, in_fmt); \ bt_dump(buf, in, in_fmt); \
bt_strncat(buf, ") gives "); \ bt_strncat(buf, ") gives "); \