[PATCH] Remove unused variable from signal handlers
Soeren Finster
sf at 9by6.org
Tue Apr 26 05:48:20 PDT 2011
No effect but lesser gcc complaints
Signed-off-by: Soeren Finster <sf at 9by6.org>
---
notmuch-new.c | 4 +---
notmuch-tag.c | 4 +---
2 files changed, 2 insertions(+), 6 deletions(-)
diff --git a/notmuch-new.c b/notmuch-new.c
index 4874a1c..271ef9a 100644
--- a/notmuch-new.c
+++ b/notmuch-new.c
@@ -64,10 +64,8 @@ static volatile sig_atomic_t interrupted;
static void
handle_sigint (unused (int sig))
{
- ssize_t ignored;
static char msg[] = "Stopping... \n";
-
- ignored = write(2, msg, sizeof(msg)-1);
+ write(2, msg, sizeof(msg)-1);
interrupted = 1;
}
diff --git a/notmuch-tag.c b/notmuch-tag.c
index 60e21e0..6204ae3 100644
--- a/notmuch-tag.c
+++ b/notmuch-tag.c
@@ -25,10 +25,8 @@ static volatile sig_atomic_t interrupted;
static void
handle_sigint (unused (int sig))
{
- ssize_t ignored;
-
static char msg[] = "Stopping... \n";
- ignored = write(2, msg, sizeof(msg)-1);
+ write(2, msg, sizeof(msg)-1);
interrupted = 1;
}
--
1.7.4.4
More information about the notmuch
mailing list