summaryrefslogtreecommitdiff
path: root/migcom.c
diff options
context:
space:
mode:
authorFlavio Cruz <flaviocruz@gmail.com>2022-11-14 00:40:07 -0500
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2022-11-15 02:45:08 +0100
commitf51fc836c5b690f5448e76196dd40bdb55957a11 (patch)
treeee536320125658080ae96b1085278f83e042e7e2 /migcom.c
parent3902cb2fcae6e2028252b5d2016bf0e99ed74980 (diff)
Initialize basic types once and print errors for duplicate definitions
For kernel server or user subsystems we would initialize basic types twice, once in main() and again for the subsystem declaration. Instead, initialize basic types when the subsystem is declared and then throw errors when types are defined multiple times. Message-Id: <Y3HUt/YAKaqMMTi3@viriathus>
Diffstat (limited to 'migcom.c')
-rw-r--r--migcom.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/migcom.c b/migcom.c
index c07e84d..e61c79b 100644
--- a/migcom.c
+++ b/migcom.c
@@ -213,7 +213,6 @@ main(int argc, char **argv)
set_program_name("mig");
parseArgs(argc, argv);
init_global();
- init_type();
LookNormal();
(void) yyparse();