diff options
author | Maria Matejka <mq@ucw.cz> | 2023-04-22 21:20:19 +0200 |
---|---|---|
committer | Maria Matejka <mq@ucw.cz> | 2023-04-22 21:20:19 +0200 |
commit | 6230d87c74e3629e21f1e0fe22a874a58302a01e (patch) | |
tree | bf4f644bf583369de3445cfba336bb87dc8c9113 /lib/resource.c | |
parent | 1141ce4e2d924f29e6e31ccf5e325f870c8895dd (diff) |
Protocols and tables now use the birdloop pools as primary
Diffstat (limited to 'lib/resource.c')
-rw-r--r-- | lib/resource.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/lib/resource.c b/lib/resource.c index 0006bc8d..b1b89bdf 100644 --- a/lib/resource.c +++ b/lib/resource.c @@ -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; |