From 0df875a45d069e676f1454e7339bb7d644d13bed Mon Sep 17 00:00:00 2001
From: David Lawrence Ramsey <pooka109@gmail.com>
Date: Thu, 10 Feb 2005 02:26:08 +0000
Subject: [PATCH] cosmetic fixes

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2313 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
---
 src/files.c | 2 +-
 src/nano.c  | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/files.c b/src/files.c
index 68227817..fee60c4b 100644
--- a/src/files.c
+++ b/src/files.c
@@ -2351,7 +2351,7 @@ int readable_dir(const char *path)
     /* If dir is NULL, don't do closedir(), since that changes errno. */
     if (dir != NULL)
 	closedir(dir);
-    return dir != NULL;
+    return (dir != NULL);
 }
 
 /* Initialize the browser code, including the list of files in *path */
diff --git a/src/nano.c b/src/nano.c
index 11b5b2ce..79dde436 100644
--- a/src/nano.c
+++ b/src/nano.c
@@ -1094,7 +1094,7 @@ bool open_pipe(const char *command)
 	dup2(fd[1], fileno(stderr));
 	/* If execl() returns at all, there was an error. */
 
-	execl("/bin/sh", "sh", "-c", command, 0);
+	execl("/bin/sh", "sh", "-c", command, NULL);
 	exit(0);
     }
 
-- 
GitLab