Browse Source

* sfs.c (sfs_init): Parametrize sfs.ini to allow reuse of the
messages in other places.

Pavel Roskin 22 years ago
parent
commit
bbc35a31cf
2 changed files with 9 additions and 2 deletions
  1. 5 0
      vfs/ChangeLog
  2. 4 2
      vfs/sfs.c

+ 5 - 0
vfs/ChangeLog

@@ -1,3 +1,8 @@
+2002-09-26  Pavel Roskin  <proski@gnu.org>
+
+	* sfs.c (sfs_init): Parametrize sfs.ini to allow reuse of the
+	messages in other places.
+
 2002-09-25  Pavel Roskin  <proski@gnu.org>
 
 	* vfs.c (vfs_parse_filemode): Fix parsing for filenames that

+ 4 - 2
vfs/sfs.c

@@ -330,7 +330,8 @@ static int sfs_init (vfs *me)
 	    }
 
 	if (!semi){
-	    fprintf (stderr, _("Warning: Invalid line in sfs.ini:\n%s\n"), key);
+	    fprintf (stderr, _("Warning: Invalid line in %s:\n%s\n"),
+		     "sfs.ini", key);
 	    continue;
 	}
 
@@ -341,7 +342,8 @@ static int sfs_init (vfs *me)
 	    case '2': flags |= F_2; break;
 	    case 'R': flags |= F_NOLOCALCOPY; break;
 	    default:
-	      fprintf (stderr, _("Warning: Invalid flag %c in sfs.ini:\n%s\n"), *c, key);
+		fprintf (stderr, _("Warning: Invalid flag %c in %s:\n%s\n"),
+			 *c, "sfs.ini", key);
 	    }	    
 	    c++;
 	}