X-Git-Url: https://git.ozlabs.org/?p=ccan;a=blobdiff_plain;f=tools%2Fmanifest.c;h=024eaa42a0d42c469e08f2ccba78846f58e0f1d5;hp=e41c7abc371b8d1b80dcf41ab67b126b09fbcf93;hb=624871f35e94510b9924ba733f2b878ecf2cc6cc;hpb=d8c9fdc0e6b70ab4fced949ee6488dc585a711f4 diff --git a/tools/manifest.c b/tools/manifest.c index e41c7abc..024eaa42 100644 --- a/tools/manifest.c +++ b/tools/manifest.c @@ -23,8 +23,6 @@ #include #include -const char *ccan_dir; - static size_t dir_hash(const char *name) { return hash(name, strlen(name), 0); @@ -249,21 +247,6 @@ struct manifest *get_manifest(const void *ctx, const char *dir) errx(1, "I don't expect to be run from the root directory"); m->basename++; - /* We expect the ccan dir to be two levels above module dir. */ - if (!ccan_dir) { - char *p, *dir; - dir = talloc_strdup(NULL, m->dir); - p = strrchr(dir, '/'); - if (!p) - errx(1, "I expect the ccan root directory in ../.."); - *p = '\0'; - p = strrchr(dir, '/'); - if (!p) - errx(1, "I expect the ccan root directory in ../.."); - *p = '\0'; - ccan_dir = dir; - } - add_files(m, ""); /* Nicer to run tests in a predictable order. */