X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/8f4c5da8971926f7eccc912f7998c343aef3c33b..e8635a8a1:/uip/popi.c?ds=sidebyside diff --git a/uip/popi.c b/uip/popi.c index 2fae3816..e26e346e 100644 --- a/uip/popi.c +++ b/uip/popi.c @@ -3,12 +3,16 @@ * popi.c -- POP initiator for MPOP * * $Id$ + * + * This code is Copyright (c) 2002, by the authors of nmh. See the + * COPYRIGHT file in the root directory of the nmh distribution for + * complete copyright information. */ #include #include #include -#include +#include #include #ifndef RPOP @@ -76,7 +80,6 @@ static char mailname[BUFSIZ]; static char *nfs = NULL; static struct msgs *mp; -extern int errno; extern char response[]; /* @@ -211,7 +214,7 @@ main (int argc, char **argv) } snprintf (mailname, sizeof(mailname), "PO box for %s@%s", user, host); - if (pop_init (host, user, pass, snoop, rpop) == NOTOK) + if (pop_init (host, user, pass, NULL, snoop, rpop) == NOTOK) adios (NULL, "%s", response); if (rpop > 0) setuid (getuid ()); @@ -515,7 +518,7 @@ msh (void) #ifdef SMTPMTS -#include +#include #include static int