summaryrefslogtreecommitdiffstats
path: root/contrib/dialog/prgbox.c
diff options
context:
space:
mode:
authornwhitehorn <nwhitehorn@FreeBSD.org>2012-10-21 18:25:12 +0000
committernwhitehorn <nwhitehorn@FreeBSD.org>2012-10-21 18:25:12 +0000
commit59ae05f843643afc6998fcc4b2b415d89a8635ee (patch)
tree74dabcbe10843be3b85112de4524f2abb8e4112f /contrib/dialog/prgbox.c
parent2ad040bf3f552fc8b740e79fe6db1bf91414d583 (diff)
parenta94245b3d36b447d1f761028da7e072210e64b43 (diff)
downloadFreeBSD-src-59ae05f843643afc6998fcc4b2b415d89a8635ee.zip
FreeBSD-src-59ae05f843643afc6998fcc4b2b415d89a8635ee.tar.gz
Update dialog to 20120706: includes minor useability enhancements and
fixes for warnings encountered with clang.
Diffstat (limited to 'contrib/dialog/prgbox.c')
-rw-r--r--contrib/dialog/prgbox.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/contrib/dialog/prgbox.c b/contrib/dialog/prgbox.c
index a3b3ea6..cd7bb8c 100644
--- a/contrib/dialog/prgbox.c
+++ b/contrib/dialog/prgbox.c
@@ -1,5 +1,5 @@
/*
- * $Id: prgbox.c,v 1.7 2011/06/30 20:44:13 tom Exp $
+ * $Id: prgbox.c,v 1.8 2011/10/20 23:42:32 tom Exp $
*
* prgbox.c -- implements the prg box
*
@@ -31,11 +31,10 @@ dlg_popen(const char *command, const char *type)
{
FILE *result = 0;
int fd[2];
- int pid;
const char *argv[4];
if ((*type == 'r' || *type != 'w') && pipe(fd) == 0) {
- switch (pid = fork()) {
+ switch (fork()) {
case -1: /* Error. */
(void) close(fd[0]);
(void) close(fd[1]);
OpenPOWER on IntegriCloud