update for HEAD-2003021201
[reactos.git] / lib / msvcrt / misc / amsg.c
index dafdcd1..b72428f 100644 (file)
@@ -8,6 +8,7 @@
  *              28/12/98: Created
  */
 
+#include <msvcrt/stdlib.h>
 #include <msvcrt/stdio.h>
 
 
@@ -35,13 +36,13 @@ static char *__rt_err_msg[] =
 
 int _aexit_rtn(int exitcode)
 {
-   _exit(exitcode);
+    _exit(exitcode);
+    return 0;
 }
 
-void _amsg_exit (int errnum)
+void _amsg_exit(int errnum)
 {
-   fprintf(stderr, "runtime error - %s\n", __rt_err_msg[errnum]);
-   _aexit_rtn(-1);
+    fprintf(stderr, "runtime error - %s\n", __rt_err_msg[errnum]);
+    _aexit_rtn(-1);
 }
 
-/* EOF */