output: Refactor driver options to avoid so much copying.
[pspp] / src / output / csv.c
index e63e828d4e7daf219a231fcb996220578d93d265..e6b769b383039c740abdb9c5321c86b5d889724a 100644 (file)
@@ -65,15 +65,15 @@ csv_driver_cast (struct output_driver *driver)
   return UP_CAST (driver, struct csv_driver, driver);
 }
 
-static struct driver_option *
-opt (struct string_map *options, const char *key, const char *default_value)
+static struct driver_option
+opt (struct driver_options *options, const char *key, const char *default_value)
 {
-  return driver_option_get ("csv", options, key, default_value);
+  return driver_option_get (options, key, default_value);
 }
 
 static struct output_driver *
 csv_create (struct file_handle *fh, enum settings_output_devices device_type,
-            struct string_map *o)
+            struct driver_options *o)
 {
   FILE *file = fn_open (fh, "w");
   if (!file)