diff options
author | Matthias Andree <matthias.andree@gmx.de> | 2006-03-14 12:06:04 +0000 |
---|---|---|
committer | Matthias Andree <matthias.andree@gmx.de> | 2006-03-14 12:06:04 +0000 |
commit | d57b00768a8fa44d1e1c5f758440edabfa488baf (patch) | |
tree | dcdc77e502b4d251f05bc4f49f8ececebeb69df0 /pop2.c | |
parent | cd5b84b42695f3a653df1e6692cf1bf5268a50f7 (diff) | |
download | fetchmail-d57b00768a8fa44d1e1c5f758440edabfa488baf.tar.gz fetchmail-d57b00768a8fa44d1e1c5f758440edabfa488baf.tar.bz2 fetchmail-d57b00768a8fa44d1e1c5f758440edabfa488baf.zip |
Fix more compiler warnings.
svn path=/branches/BRANCH_6-3/; revision=4736
Diffstat (limited to 'pop2.c')
-rw-r--r-- | pop2.c | 12 |
1 files changed, 10 insertions, 2 deletions
@@ -59,6 +59,7 @@ static int pop2_getauth(int sock, struct query *ctl, char *buf) { int status; + (void)buf; strlcpy(shroud, ctl->password, sizeof(shroud)); status = gen_transact(sock, "HELO %s %s", @@ -71,6 +72,8 @@ static int pop2_getrange(int sock, struct query *ctl, const char *folder, int *countp, int *newp, int *bytes) /* get range of messages to be fetched */ { + (void)ctl; + /* maybe the user wanted a non-default folder */ if (folder) { @@ -106,6 +109,7 @@ static int pop2_fetch(int sock, struct query *ctl, int number, int *lenp) { int ok; + (void)ctl; *lenp = 0; ok = gen_transact(sock, "READ %d", number); if (ok) @@ -117,15 +121,18 @@ static int pop2_fetch(int sock, struct query *ctl, int number, int *lenp) return(ok); } -static int pop2_trail(int sock, struct query *ctl, int number, const char *tag) +static int pop2_trail(int sock, struct query *ctl, const char *tag) /* send acknowledgement for message data */ { + (void)ctl; + (void)tag; return(gen_transact(sock, ctl->keep ? "ACKS" : "ACKD")); } static int pop2_logout(int sock, struct query *ctl) /* send logout command */ { + (void)ctl; return(gen_transact(sock, "QUIT")); } @@ -147,8 +154,9 @@ static const struct method pop2 = pop2_trail, /* eat message trailer */ NULL, /* no POP2 delete method */ NULL, /* how to mark a message as seen */ + NULL, /* how to end mailbox processing */ pop2_logout, /* log out, we're done */ - FALSE, /* no, we can't re-poll */ + FALSE /* no, we can't re-poll */ }; int doPOP2 (struct query *ctl) |