cosmetic fixes

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2563 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
master
David Lawrence Ramsey 2005-05-28 23:32:45 +00:00
parent 15aaa2c31a
commit 1a1ea3d42f
1 changed files with 2 additions and 2 deletions

View File

@ -1571,6 +1571,7 @@ int write_file(const char *name, bool tmp, int append, bool
} }
f = fdopen(fd, (append == 1) ? "ab" : "wb"); f = fdopen(fd, (append == 1) ? "ab" : "wb");
if (f == NULL) { if (f == NULL) {
statusbar(_("Error writing %s: %s"), realname, strerror(errno)); statusbar(_("Error writing %s: %s"), realname, strerror(errno));
close(fd); close(fd);
@ -1582,8 +1583,7 @@ int write_file(const char *name, bool tmp, int append, bool
assert(fileage != NULL && filebot != NULL); assert(fileage != NULL && filebot != NULL);
while (fileptr != filebot) { while (fileptr != filebot) {
size_t data_len = strlen(fileptr->data); size_t data_len = strlen(fileptr->data), size;
size_t size;
/* Newlines to nulls, just before we write to disk. */ /* Newlines to nulls, just before we write to disk. */
sunder(fileptr->data); sunder(fileptr->data);