aboutsummaryrefslogtreecommitdiff
path: root/decl.c
diff options
context:
space:
mode:
authorMichael Forney <mforney@mforney.org>2019-03-13 18:51:25 -0700
committerMichael Forney <mforney@mforney.org>2019-03-13 18:51:25 -0700
commit1bc3f5f9bdf956e50cb38046f41bf5f61b49d306 (patch)
tree82b2996e72756bb9e8526e97c5111720a467871d /decl.c
parent9d3c8863100040175c56d7ba53ca98a9ad637e57 (diff)
Drop base parameter from mktype
Diffstat (limited to 'decl.c')
-rw-r--r--decl.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/decl.c b/decl.c
index 505f900..9c131b6 100644
--- a/decl.c
+++ b/decl.c
@@ -176,7 +176,7 @@ tagspec(struct scope *s)
if (t->kind != kind)
error(&tok.loc, "redeclaration of tag '%s' with different kind", tag);
} else {
- t = mktype(kind, NULL);
+ t = mktype(kind);
if (kind == TYPEBASIC) {
*t = typeint;
t->basic.kind = BASICENUM;
@@ -463,7 +463,7 @@ declaratortypes(struct scope *s, struct list *result, char **name, bool allowabs
case TLPAREN: /* function declarator */
next();
func:
- t = mktype(TYPEFUNC, NULL);
+ t = mktype(TYPEFUNC);
t->func.isprototype = false;
t->func.isvararg = false;
t->func.isnoreturn = false;