From 6469e9668b5328600ef9e48d901886be12b0315e Mon Sep 17 00:00:00 2001 From: Benno Schulenberg Date: Wed, 19 Aug 2020 16:52:28 +0200 Subject: [PATCH] tweaks: condense two declarations --- src/files.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/files.c b/src/files.c index 513a08b0..092ef85a 100644 --- 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