X-Git-Url: http://git.ozlabs.org/?p=ccan;a=blobdiff_plain;f=ccan%2Fcdump%2Fcdump.c;h=7e42dbd74dc6d328186680598a6b364b2c957bb9;hp=f080b968b5732593dbed861d241614878c5191bf;hb=e589d16bb2fd92366c02217d5ba6ca6a77ac3515;hpb=ed95d8600afe1564ffd1783ae9ea0ef6324904dc;ds=sidebyside diff --git a/ccan/cdump/cdump.c b/ccan/cdump/cdump.c index f080b968..7e42dbd7 100644 --- a/ccan/cdump/cdump.c +++ b/ccan/cdump/cdump.c @@ -213,7 +213,7 @@ static struct cdump_type *get_type(struct cdump_definitions *defs, enum cdump_type_kind kind, const char *name) { - struct cdump_map *m; + cdump_map_t *m = (void *)0x1L; /* Shouldn't be used */ struct cdump_type *t; switch (kind) { @@ -609,7 +609,7 @@ static bool tok_take_enum(struct parse_state *ps) static bool gather_undefines(const char *name, struct cdump_type *t, - struct cdump_map *undefs) + cdump_map_t *undefs) { if (!type_defined(t)) strmap_add(undefs, name, t); @@ -618,15 +618,15 @@ static bool gather_undefines(const char *name, static bool remove_from_map(const char *name, struct cdump_type *t, - struct cdump_map *map) + cdump_map_t *map) { strmap_del(map, name, NULL); return true; } -static void remove_undefined(struct cdump_map *map) +static void remove_undefined(cdump_map_t *map) { - struct cdump_map undefs; + cdump_map_t undefs; /* We can't delete inside iterator, so gather all the undefs * then remove them. */