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:
@@ -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;
|
||||
|
Reference in New Issue
Block a user