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

@ -1,3 +1,3 @@
CCAN imported from http://ccodearchive.net.
CCAN version: init-2401-ge2d15a2b
CCAN version: init-2402-gec1f7161

View file

@ -11,9 +11,6 @@
#include <errno.h>
#include <assert.h>
#define PATH_SEP_STR "/"
#define PATH_SEP (PATH_SEP_STR[0])
char *path_cwd(const tal_t *ctx)
{
size_t len = 64;

View file

@ -165,4 +165,8 @@ char **path_split(const tal_t *ctx, const char *path TAKES);
*/
size_t path_ext_off(const char *path);
/* Separator constants */
#define PATH_SEP_STR "/"
#define PATH_SEP (PATH_SEP_STR[0])
#endif /* CCAN_PATH_H */

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. */