1
0
mirror of https://gitlab.labs.nic.cz/labs/bird.git synced 2024-05-11 16:54:54 +00:00

Protocols and tables now use the birdloop pools as primary

This commit is contained in:
Maria Matejka
2023-04-22 21:20:19 +02:00
parent 1141ce4e2d
commit 6230d87c74
6 changed files with 65 additions and 21 deletions

View File

@@ -64,13 +64,19 @@ rp_new(pool *p, const char *name)
}
pool *
rp_newf(pool *p, const char *fmt, ...)
rp_vnewf(pool *p, const char *fmt, va_list args)
{
pool *z = rp_new(p, NULL);
z->name = mb_vsprintf(p, fmt, args);
return z;
}
pool *
rp_newf(pool *p, const char *fmt, ...)
{
va_list args;
va_start(args, fmt);
z->name = mb_vsprintf(p, fmt, args);
pool *z = rp_vnewf(p, fmt, args);
va_end(args);
return z;