summaryrefslogtreecommitdiff
path: root/src/libopts/makeshell.c
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@gnutls.org>2012-05-09 19:53:39 +0200
committerNikos Mavrogiannopoulos <nmav@gnutls.org>2012-05-14 17:35:38 +0200
commit209dfe8079436cbe769f829e11d4dbdfe53de9c5 (patch)
treef7510ce3ab8bb188c4174c2a7bb81cfd928caa8e /src/libopts/makeshell.c
parent23df538293ea2a9beb9d7499c7f5df6be40dc5e8 (diff)
downloadgnutls-209dfe8079436cbe769f829e11d4dbdfe53de9c5.tar.gz
Updated libopts
Diffstat (limited to 'src/libopts/makeshell.c')
-rw-r--r--src/libopts/makeshell.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/libopts/makeshell.c b/src/libopts/makeshell.c
index a2b0a2e101..79edb7022b 100644
--- a/src/libopts/makeshell.c
+++ b/src/libopts/makeshell.c
@@ -2,7 +2,7 @@
/**
* \file makeshell.c
*
- * Time-stamp: "2012-01-29 19:01:07 bkorb"
+ * Time-stamp: "2012-04-07 09:03:16 bkorb"
*
* This module will interpret the options set in the tOptions
* structure and create a Bourne shell script capable of parsing them.
@@ -163,11 +163,11 @@ optionParseShell(tOptions * pOpts)
else if (ENABLED_GENSHELL_OPT(SHELL))
printf(SHOW_PROG_ENV, pOpts->pzPROGNAME);
- fflush(stdout);
#ifdef HAVE_FCHMOD
fchmod(STDOUT_FILENO, 0755);
#endif
fclose(stdout);
+
if (ferror(stdout)) {
fputs(zOutputFail, stderr);
exit(EXIT_FAILURE);
@@ -718,7 +718,7 @@ open_out(char const * pzFile)
*/
script_trailer = pzScan + END_MARK_LEN;
script_leader = pzData;
- } while (AG_FALSE);
+ } while (false);
if (freopen(pzFile, "w" FOPEN_BINARY_FLAG, stdout) != stdout) {
fprintf(stderr, zFreopenFail, errno, strerror(errno));