| 545 | } |
| 546 | |
| 547 | static char *tmp_dsn(const tal_t *ctx) |
| 548 | { |
| 549 | char *dsn, *filename; |
| 550 | int fd = tmpdir_mkstemp(ctx, "lacct-db-XXXXXX", &filename); |
| 551 | if (fd == -1) |
| 552 | return NULL; |
| 553 | close(fd); |
| 554 | |
| 555 | dsn = tal_fmt(ctx, "%s", filename); |
| 556 | tal_free(filename); |
| 557 | |
| 558 | return dsn; |
| 559 | } |
| 560 | |
| 561 | static struct bkpr *bkpr_setup(const tal_t *ctx) |
| 562 | { |
no test coverage detected