Sat Dec 27 16:16:49 2003 Ben Pfaff <blp@gnu.org>
[pspp-builds.git] / src / error.c
index 803cdc71bcc4a22638d501e165dfdf29f770be7f..fc34d5d9deccc97052039ba6b483eb838317601b 100644 (file)
@@ -36,13 +36,13 @@ char *alloca ();
 #endif
 
 #include <assert.h>
+#include "error.h"
 #include <ctype.h>
 #include <stdarg.h>
 #include <stdio.h>
 #include <stdlib.h>
 #include "alloc.h"
 #include "command.h"
-#include "error.h"
 #include "getline.h"
 #include "main.h"
 #include "output.h"
@@ -276,11 +276,11 @@ err_vmsg (const struct error *e)
       {0, NULL, N_("installation error")},     /* IE */
       {2, NULL, N_("installation error")},     /* IS */
 
-      {2, NULL, N_("error")},                  /* DE */
-      {2, NULL, N_("warning")},                        /* DW */
+      {2, &err_error_count, N_("error")},      /* DE */
+      {2, &err_warning_count, N_("warning")},  /* DW */
 
-      {0, NULL, N_("error")},                  /* ME */
-      {0, NULL, N_("warning")},                        /* MW */
+      {0, &err_error_count, N_("error")},      /* ME */
+      {0, &err_warning_count, N_("warning")},  /* MW */
       {0, NULL, N_("note")},                   /* MM */
     };