mirror of
git://git.sv.gnu.org/nano.git
synced 2025-02-04 23:44:05 +03:00
fix compilation with -pedantic
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3007 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
This commit is contained in:
parent
7fc0ada6cc
commit
e014fbda80
@ -1593,7 +1593,7 @@ int do_writeout(bool exiting)
|
|||||||
currshortcut = writefile_list;
|
currshortcut = writefile_list;
|
||||||
|
|
||||||
if (exiting && openfile->filename[0] != '\0' && ISSET(TEMP_FILE)) {
|
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);
|
FALSE);
|
||||||
|
|
||||||
/* Write succeeded. */
|
/* Write succeeded. */
|
||||||
|
@ -605,7 +605,8 @@ void die_save_file(const char *die_filename)
|
|||||||
|
|
||||||
retval = get_next_filename(die_filename, ".save");
|
retval = get_next_filename(die_filename, ".save");
|
||||||
if (retval[0] != '\0')
|
if (retval[0] != '\0')
|
||||||
failed = (write_file(retval, NULL, TRUE, FALSE, TRUE) == -1);
|
failed = (write_file(retval, NULL, TRUE, OVERWRITE,
|
||||||
|
TRUE) == -1);
|
||||||
|
|
||||||
if (!failed)
|
if (!failed)
|
||||||
fprintf(stderr, _("\nBuffer written to %s\n"), retval);
|
fprintf(stderr, _("\nBuffer written to %s\n"), retval);
|
||||||
|
@ -2027,10 +2027,10 @@ void do_spell(void)
|
|||||||
|
|
||||||
#ifndef NANO_SMALL
|
#ifndef NANO_SMALL
|
||||||
if (openfile->mark_set)
|
if (openfile->mark_set)
|
||||||
i = write_marked_file(temp, temp_file, TRUE, FALSE);
|
i = write_marked_file(temp, temp_file, TRUE, OVERWRITE);
|
||||||
else
|
else
|
||||||
#endif
|
#endif
|
||||||
i = write_file(temp, temp_file, TRUE, FALSE, FALSE);
|
i = write_file(temp, temp_file, TRUE, OVERWRITE, FALSE);
|
||||||
|
|
||||||
if (i == -1) {
|
if (i == -1) {
|
||||||
statusbar(_("Error writing temp file: %s"), strerror(errno));
|
statusbar(_("Error writing temp file: %s"), strerror(errno));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user