Rewrote categorical value-handling
[pspp] / src / output.c
index 59bccb8045324f707f792d3be6be4f2feabc1ec3..ba620e061314f493f5138a6add50117405345ce4 100644 (file)
@@ -25,7 +25,6 @@
 #include <errno.h>
 #include <ctype.h>
 #include "alloc.h"
-#include "devind.h"
 #include "error.h"
 #include "filename.h"
 #include "htmlP.h"
@@ -231,7 +230,6 @@ outp_init (void)
   extern struct outp_class epsf_class;
 #endif
   extern struct outp_class html_class;
-  extern struct outp_class devind_class;
 
   char def[] = "default";
 
@@ -242,7 +240,6 @@ outp_init (void)
   add_class (&epsf_class);
   add_class (&postscript_class);
 #endif
-  add_class (&devind_class);
   add_class (&ascii_class);
 
   add_name (def, &def[strlen (def)], OUTP_S_INIT_FILE);
@@ -296,7 +293,7 @@ outp_read_devices (void)
   if (init_fn == NULL)
     {
       msg (IE, _("Cannot find output initialization file.  "
-                 "Use `-vvvv' to view search path."));
+                 "Use `-vvvvv' to view search path."));
       goto exit;
     }
 
@@ -911,7 +908,7 @@ outp_match_keyword (const char *s, struct outp_option *tab,
       *++cp = 0;
 
       info->initial = xstrdup (s);
-      info->options = xmalloc (sizeof *info->options * (cp - s));
+      info->options = xnmalloc (cp - s, sizeof *info->options);
       memcpy (info->options, ptr, sizeof *info->options * (cp - s));
     }