From f51fc836c5b690f5448e76196dd40bdb55957a11 Mon Sep 17 00:00:00 2001 From: Flavio Cruz Date: Mon, 14 Nov 2022 00:40:07 -0500 Subject: 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: --- migcom.c | 1 - 1 file changed, 1 deletion(-) (limited to 'migcom.c') 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(); -- cgit v1.2.3