MCPcopy Create free account
hub / github.com/ElementsProject/lightning / tmp_dsn

Function tmp_dsn

plugins/bkpr/test/run-recorder.c:547–559  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

545}
546
547static 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
561static struct bkpr *bkpr_setup(const tal_t *ctx)
562{

Callers 1

bkpr_setupFunction · 0.85

Calls 2

tmpdir_mkstempFunction · 0.85
tal_freeFunction · 0.85

Tested by

no test coverage detected