nano

nano with my custom patches
git clone git://bsandro.tech/nano
Log | Files | Refs | README | LICENSE

commit 6469e9668b5328600ef9e48d901886be12b0315e
parent 68d71f649e642662959d1111d6c6a4ce3c556717
Author: Benno Schulenberg <bensberg@telfort.nl>
Date:   Wed, 19 Aug 2020 16:52:28 +0200

tweaks: condense two declarations

Diffstat:
Msrc/files.c | 6++----
1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/src/files.c b/src/files.c @@ -2066,11 +2066,9 @@ int do_writeout(bool exiting, bool withprompt) functionptrtype func; const char *msg; #ifndef NANO_TINY - const char *formatstr, *backupstr; - - formatstr = (openfile->fmt == DOS_FILE) ? _(" [DOS Format]") : + const char *formatstr = (openfile->fmt == DOS_FILE) ? _(" [DOS Format]") : (openfile->fmt == MAC_FILE) ? _(" [Mac Format]") : ""; - backupstr = ISSET(MAKE_BACKUP) ? _(" [Backup]") : ""; + const char *backupstr = ISSET(MAKE_BACKUP) ? _(" [Backup]") : ""; /* When the mark is on, offer to write the selection to disk, but * not when in restricted mode, because it would allow writing to