]> git.wh0rd.org Git - nano.git/commitdiff
fix compilation with -pedantic
authorDavid Lawrence Ramsey <pooka109@gmail.com>
Mon, 29 Aug 2005 19:11:26 +0000 (19:11 +0000)
committerDavid Lawrence Ramsey <pooka109@gmail.com>
Mon, 29 Aug 2005 19:11:26 +0000 (19:11 +0000)
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3007 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

src/files.c
src/nano.c
src/text.c

index 9c23459feda8d0bd216e039b1df0208ffb4f0584..dfb2dd655e40e4cdfdff5a8e17c48f809871e682 100644 (file)
@@ -1593,7 +1593,7 @@ int do_writeout(bool exiting)
     currshortcut = writefile_list;
 
     if (exiting && openfile->filename[0] != '\0' && ISSET(TEMP_FILE)) {
-       retval = write_file(openfile->filename, NULL, FALSE, 0,
+       retval = write_file(openfile->filename, NULL, FALSE, OVERWRITE,
                FALSE);
 
        /* Write succeeded. */
index 4cbe965c7019dbb618f06bc040f6d651f66a8571..66497c7bdee01475ce8e604b98af00913cf9b76c 100644 (file)
@@ -605,7 +605,8 @@ void die_save_file(const char *die_filename)
 
     retval = get_next_filename(die_filename, ".save");
     if (retval[0] != '\0')
-       failed = (write_file(retval, NULL, TRUE, FALSE, TRUE) == -1);
+       failed = (write_file(retval, NULL, TRUE, OVERWRITE,
+               TRUE) == -1);
 
     if (!failed)
        fprintf(stderr, _("\nBuffer written to %s\n"), retval);
index e3ee1079f9416f21d211f8bbbd8ad2d2ebc88e8c..2758e970351e02deaa9be46c45f968105ced2234 100644 (file)
@@ -2027,10 +2027,10 @@ void do_spell(void)
 
 #ifndef NANO_SMALL
     if (openfile->mark_set)
-       i = write_marked_file(temp, temp_file, TRUE, FALSE);
+       i = write_marked_file(temp, temp_file, TRUE, OVERWRITE);
     else
 #endif
-       i = write_file(temp, temp_file, TRUE, FALSE, FALSE);
+       i = write_file(temp, temp_file, TRUE, OVERWRITE, FALSE);
 
     if (i == -1) {
        statusbar(_("Error writing temp file: %s"), strerror(errno));