Reworked settings so as to use one large struct instead of lots of static
[pspp-builds.git] / src / data / file-name.c
index 2fd79428e2409fc850e6c644503ad8e6e1778cc7..c6f91b56a961c1567cf7b9a4822f8c4d5899088d 100644 (file)
@@ -269,7 +269,7 @@ fn_open (const char *fn, const char *mode)
 #if HAVE_POPEN
   if (fn[0] == '|')
     {
-      if (get_safer_mode ())
+      if (settings_get_safer_mode ())
        return safety_violation (fn);
 
       return popen (&fn[1], mode[0] == 'r' ? "r" : "w");
@@ -279,7 +279,7 @@ fn_open (const char *fn, const char *mode)
       char *s;
       FILE *f;
 
-      if (get_safer_mode ())
+      if (settings_get_safer_mode ())
        return safety_violation (fn);
 
       s = xmalloca (strlen (fn));