ccan: update so we get exposed path constants.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
Rusty Russell
2018-02-16 10:54:15 +10:30
committed by Christian Decker
parent c8f9ea7bf7
commit ccd0e5db54
4 changed files with 5 additions and 8 deletions

View File

@@ -128,10 +128,6 @@ static const char *find_my_path(const tal_t *ctx, const char *argv0)
{
char *me, *tmpctx = tal_tmpctx(ctx);
/* FIXME: Expose in CCAN! */
#define PATH_SEP_STR "/"
#define PATH_SEP (PATH_SEP_STR[0])
if (strchr(argv0, PATH_SEP)) {
const char *path;
/* Absolute paths are easy. */