From cb236290e267f17d5f81a18d742b81f1b74b05a2 Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Fri, 8 Nov 1996 17:51:52 +0000 Subject: Prototypes everywhere. svn path=/trunk/; revision=515 --- pop2.c | 27 ++++++--------------------- 1 file changed, 6 insertions(+), 21 deletions(-) (limited to 'pop2.c') diff --git a/pop2.c b/pop2.c index a501c624..35f69fbd 100644 --- a/pop2.c +++ b/pop2.c @@ -16,10 +16,8 @@ static int pound_arg, equal_arg; -int pop2_ok (sockfp, argbuf) +int pop2_ok (FILE *sockfp, char *argbuf) /* parse POP2 command response */ -FILE *sockfp; -char *argbuf; { int ok; char buf [POPBUFSIZE+1]; @@ -55,22 +53,16 @@ char *argbuf; return(ok); } -int pop2_getauth(sockfp, ctl, buf) +int pop2_getauth(FILE *sockfp, struct query *ctl, char *buf) /* apply for connection authorization */ -FILE *sockfp; -struct query *ctl; -char *buf; { return(gen_transact(sockfp, "HELO %s %s", ctl->remotename, ctl->password)); } -static int pop2_getrange(sockfp, ctl, countp, newp) +static int pop2_getrange(FILE *sockfp, struct query *ctl, int*countp, int*newp) /* get range of messages to be fetched */ -FILE *sockfp; -struct query *ctl; -int *countp, *newp; { /* * We should have picked up a count of messages in the user's @@ -96,11 +88,8 @@ int *countp, *newp; return(0); } -static int pop2_fetch(sockfp, number, lenp) +static int pop2_fetch(FILE *sockfp, int number, int *lenp) /* request nth message */ -FILE *sockfp; -int number; -int *lenp; { int ok; @@ -115,11 +104,8 @@ int *lenp; return(ok); } -static int pop2_trail(sockfp, ctl, number) +static int pop2_trail(FILE *sockfp, struct query *ctl, int number) /* send acknowledgement for message data */ -FILE *sockfp; -struct query *ctl; -int number; { return(gen_transact(sockfp, ctl->keep ? "ACKS" : "ACKD")); } @@ -142,9 +128,8 @@ const static struct method pop2 = "QUIT", /* the POP2 exit command */ }; -int doPOP2 (ctl) +int doPOP2 (struct query *ctl) /* retrieve messages using POP2 */ -struct query *ctl; { return(do_protocol(ctl, &pop2)); } -- cgit v1.2.3