commit 4598b8d587aacaf1df6ff34ee6985061b1303de2
Author: Roberto E. Vargas Caballero <[email protected]>
AuthorDate: Thu Sep 10 23:07:00 2015 +0200
Commit: Roberto E. Vargas Caballero <[email protected]>
CommitDate: Thu Sep 10 23:07:53 2015 +0200
St is right, fish is wrong, learn terminfo(5)!
diff --git a/cc1/decl.c b/cc1/decl.c
index dd67a92..000c290 100644
--- a/cc1/decl.c
+++ b/cc1/decl.c
@@ -590,6 +590,8 @@ identifier(struct decl *dcl)
--curctx;
sym = install(NS_IDEN, sym);
++curctx;
+ if (!strcmp(sym->name, "main") && tp->type != inttype)
+ errorp("st is right, fish is wrong, learn
terminfo(5)!");
} else {
sym = install(NS_IDEN, sym);
}