X-Git-Url: https://git.ozlabs.org/?a=blobdiff_plain;ds=inline;f=tools%2Fccanlint%2Fccanlint.c;fp=tools%2Fccanlint%2Fccanlint.c;h=1e5cf2759c0236a2b329c0a5f00e4ebe35584649;hb=ab244401cdba4513f3a3064c5f403fc2a59bf017;hp=158195cbdef04adf4c6ca1323ccc68c3862b1f1b;hpb=0229ddbf05d402b994133641ecfcdafd4bf73389;p=ccan diff --git a/tools/ccanlint/ccanlint.c b/tools/ccanlint/ccanlint.c index 158195cb..1e5cf275 100644 --- a/tools/ccanlint/ccanlint.c +++ b/tools/ccanlint/ccanlint.c @@ -35,12 +35,10 @@ #include #include -struct ccanlint_map { - STRMAP_MEMBERS(struct ccanlint *); -}; +typedef STRMAP(struct ccanlint *) ccanlint_map_t; int verbose = 0; -static struct ccanlint_map tests; +static ccanlint_map_t tests; bool safe_mode = false; bool keep_results = false; bool non_ccan_deps = false; @@ -273,7 +271,7 @@ static bool init_deps(const char *member, struct ccanlint *c, void *unused) } static bool check_names(const char *member, struct ccanlint *c, - struct ccanlint_map *names) + ccanlint_map_t *names) { if (!strmap_add(names, c->name, c)) err(1, "Duplicate name %s", c->name); @@ -282,7 +280,7 @@ static bool check_names(const char *member, struct ccanlint *c, static void init_tests(void) { - struct ccanlint_map names; + ccanlint_map_t names; struct ccanlint **table; size_t i, num;