crt: exe: Remove global variable mainret

Replace it by the local variable ret, as its value is used only in the
__tmainCRTStartup() function.

Signed-off-by: Martin Storsjö <martin@martin.st>
diff --git a/mingw-w64-crt/crt/crtexe.c b/mingw-w64-crt/crt/crtexe.c
index 4134b94..3d36983 100644
--- a/mingw-w64-crt/crt/crtexe.c
+++ b/mingw-w64-crt/crt/crtexe.c
@@ -51,7 +51,6 @@
 static _TCHAR **argv;
 static _TCHAR **envp;
 
-static int mainret=0;
 static int managedapp;
 static int has_cctor = 0;
 extern LPTOP_LEVEL_EXCEPTION_FILTER __mingw_oldexcpt_handler;
@@ -237,14 +236,14 @@
 #else
     __initenv = envp;
 #endif
-    mainret = _tmain (argc, argv, envp);
+    ret = _tmain (argc, argv, envp);
     if (!managedapp)
-      exit (mainret);
+      exit (ret);
 
     if (has_cctor == 0)
       _cexit ();
 
-  return mainret;
+  return ret;
 }
 
 extern int __mingw_initltsdrot_force;