X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-psi;a=blobdiff_plain;f=src%2Fcontext_validate.c;fp=src%2Fcontext_validate.c;h=a5d3604d4a9e3e1ee3e43ba03e00e0f18c3e25ac;hp=897ae657799e5a3ad30c2f72480f535b9e8916c6;hb=510306ed8a97c9eb3f113d9181b60ccdf0b91d79;hpb=9f42fcc5b2a31e074bebed0f0f906c1e54b51b95 diff --git a/src/context_validate.c b/src/context_validate.c index 897ae65..a5d3604 100644 --- a/src/context_validate.c +++ b/src/context_validate.c @@ -181,7 +181,7 @@ static inline int validate_decl_typedef(PSI_Data *data, decl_arg *def) { } data->error(data, def->token, PSI_WARNING, "Type '%s' cannot be aliased to %s'%s'", - def->type->name, pre, def->var->name); + def->var->name, pre, def->type->name); return 0; } if (def->type->type == PSI_T_VOID) { @@ -393,7 +393,7 @@ static inline int validate_decl_struct(PSI_Data *data, decl_struct *s) { if (!s->size && !s->args->count) { data->error(data, s->token, PSI_WARNING, - "Cannot compute size of empty struct %s", + "Cannot compute size of empty struct '%s'", s->name); return 0; }