summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org.ua>2014-02-26 19:03:10 +0200
committerSergey Poznyakoff <gray@gnu.org.ua>2014-02-26 19:03:10 +0200
commit25df2275c794c9f223715473494ab3b10a420d40 (patch)
tree9da8168523d9f16910e36ece26de5a30f71aa11e /lib
parent144bf5da108539d9893a90d1024539500d85a390 (diff)
downloadmailutils-25df2275c794c9f223715473494ab3b10a420d40.tar.gz
mailutils-25df2275c794c9f223715473494ab3b10a420d40.tar.bz2
Clean up unused variables.
Diffstat (limited to 'lib')
-rw-r--r--lib/mailcap.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/lib/mailcap.c b/lib/mailcap.c
index 24ef3a077..795d3feb8 100644
--- a/lib/mailcap.c
+++ b/lib/mailcap.c
@@ -423,13 +423,11 @@ create_filter (char *cmd, int outfd, int *infd)
{
/* Child process */
struct mu_wordsplit ws;
- int argc;
char **argv;
if (need_shell_p (cmd))
{
char *x_argv[4];
- argc = 3;
argv = x_argv;
argv[0] = getenv ("SHELL");
argv[1] = "-c";
@@ -444,7 +442,6 @@ create_filter (char *cmd, int outfd, int *infd)
mu_wordsplit_strerror (&ws));
_exit (127);
}
- argc = ws.ws_wordc;
argv = ws.ws_wordv;
}
/* Create input channel: */
@@ -541,7 +538,7 @@ run_mailcap (mu_mailcap_entry_t entry, struct mime_context *ctx)
int fd;
int *pfd = NULL;
int outfd = -1;
- pid_t pid, pager_pid;
+ pid_t pid;
if (ctx->debug_level > 1)
dump_mailcap_entry (entry);
@@ -582,7 +579,7 @@ run_mailcap (mu_mailcap_entry_t entry, struct mime_context *ctx)
flag = 0;
if (interactive_p (ctx)
&& mu_mailcap_entry_copiousoutput (entry, &flag) == 0 && flag)
- pager_pid = create_filter (get_pager (), -1, &outfd);
+ create_filter (get_pager (), -1, &outfd);
pid = create_filter (view_command, outfd, pfd);
if (pid > 0)

Return to:

Send suggestions and report system problems to the System administrator.