v2 of --stderr=FILE patches

Tomi Ollila tomi.ollila at iki.fi
Sun May 26 01:45:50 PDT 2013


This is version 2 of id:1369332362-4719-1-git-send-email-tomi.ollila at iki.fi

 NEWS               |  6 ++++++
 man/man1/notmuch.1 |  7 +++++++
 notmuch-client.h   |  1 +
 notmuch.c          | 32 ++++++++++++++++++++++++++++++++
 test/help-test     |  9 +++++++++
 5 files changed, 55 insertions(+)

diffdiff of the changes since v1:

diff --git a/notmuch.c b/notmuch.c
index 77b5282..654a568 100644
--- a/notmuch.c
+++ b/notmuch.c
@@ -251,7 +251,8 @@ notmuch_command (notmuch_config_t *config,
     return 0;
 }
 
-static int redirect_stderr (const char * stderr_file)
+static int
+redirect_stderr (const char * stderr_file)
 {
     if (strcmp (stderr_file, "-") == 0) {
 	if (dup2 (STDOUT_FILENO, STDERR_FILENO) < 0) {
diff --git a/test/help-test b/test/help-test
index 8b77931..bd0111c 100755
--- a/test/help-test
+++ b/test/help-test
@@ -15,7 +15,6 @@ test_expect_equal "$(cat stderr)" "
 Sorry, % is not a known command. There's not much I can do to help."
 
 test_begin_subtest "notmuch --stderr=- help %"
-notmuch --stderr=stderr help %
 test_expect_equal "$(notmuch --stderr=- help %)" "
 Sorry, % is not a known command. There's not much I can do to help."


More information about the notmuch mailing list