From d5714df6c9f63d46ee3a3b23880652e4c4cf062f Mon Sep 17 00:00:00 2001 From: Leah Neukirchen Date: Tue, 25 Sep 2018 14:01:26 +0200 Subject: mscan: rename pid1 to pager_pid --- mscan.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'mscan.c') diff --git a/mscan.c b/mscan.c index 3be986e..ae4fe35 100644 --- a/mscan.c +++ b/mscan.c @@ -491,7 +491,7 @@ oneline(char *file) int main(int argc, char *argv[]) { - pid_t pid1 = -1; + pid_t pager_pid = -1; int c; while ((c = getopt(argc, argv, "If:nv")) != -1) @@ -531,8 +531,8 @@ main(int argc, char *argv[]) if (!pg) pg = getenv("PAGER"); if (pg && *pg && strcmp(pg, "cat") != 0) { - pid1 = pipeto(pg); - if (pid1 < 0) + pager_pid = pipeto(pg); + if (pager_pid < 0) fprintf(stderr, "mscan: spawning pager '%s': %s\n", pg, strerror(errno)); @@ -571,8 +571,8 @@ main(int argc, char *argv[]) else i = blaze822_loop(argc-optind, argv+optind, oneline); - if (pid1 > 0) - pipeclose(pid1); + if (pager_pid > 0) + pipeclose(pager_pid); if (vflag) fprintf(stderr, "%ld mails scanned\n", i); -- cgit 1.4.1