]> git.wh0rd.org Git - nano.git/commitdiff
simplify
authorDavid Lawrence Ramsey <pooka109@gmail.com>
Wed, 8 Nov 2006 01:02:13 +0000 (01:02 +0000)
committerDavid Lawrence Ramsey <pooka109@gmail.com>
Wed, 8 Nov 2006 01:02:13 +0000 (01:02 +0000)
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3943 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

src/files.c

index 210ae60c6509ad64f84ec43a3a6b8a8beb66f38f..1358a95fd5520d35754d614ed88fb5001d229d9a 100644 (file)
@@ -1886,9 +1886,8 @@ int do_writeout(bool exiting)
                         * an existing file.  In this case, show a "File
                         * exists" error. */
                        if (ISSET(RESTRICTED)) {
-                           errno = EEXIST;
                            statusbar(_("Error writing %s: %s"), answer,
-                               strerror(errno));
+                               strerror(EEXIST));
                            retval = -1;
                            break;
                        } else {