aboutsummaryrefslogtreecommitdiffstats
path: root/imap.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>1996-10-01 09:31:00 +0000
committerEric S. Raymond <esr@thyrsus.com>1996-10-01 09:31:00 +0000
commit05c9daa83bea5177bdaba5630806e91781b0f5b2 (patch)
tree4d708ec2176b21252ccc5a2027b1d33c187a4390 /imap.c
parenta9f0b0fd7bf5d290a7d93c94c04c1dc78c82c44e (diff)
downloadfetchmail-05c9daa83bea5177bdaba5630806e91781b0f5b2.tar.gz
fetchmail-05c9daa83bea5177bdaba5630806e91781b0f5b2.tar.bz2
fetchmail-05c9daa83bea5177bdaba5630806e91781b0f5b2.zip
Simplify the driver main loop.
svn path=/trunk/; revision=189
Diffstat (limited to 'imap.c')
-rw-r--r--imap.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/imap.c b/imap.c
index cd7e4bdf..d4d23401 100644
--- a/imap.c
+++ b/imap.c
@@ -90,12 +90,11 @@ char *buf;
queryctl->remotename, queryctl->password));
}
-static imap_getrange(socket, queryctl, countp, firstp)
+static imap_getrange(socket, queryctl, countp)
/* get range of messages to be fetched */
int socket;
struct hostrec *queryctl;
int *countp;
-int *firstp;
{
int ok;
@@ -107,7 +106,6 @@ int *firstp;
return(ok);
*countp = count;
- *firstp = 1;
return(0);
}
@@ -173,7 +171,7 @@ int number;
return(gen_transact(socket, "STORE %d +FLAGS (\\Deleted)", number));
}
-static struct method imap =
+const static struct method imap =
{
"IMAP", /* Internet Message Access Protocol */
143, /* standard IMAP2bis/IMAP4 port */