summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlain Magloire <alainm@gnu.org>2001-04-24 05:27:14 +0000
committerAlain Magloire <alainm@gnu.org>2001-04-24 05:27:14 +0000
commitcfb7e728be759f63987648acd08bf2f2e4ee85dc (patch)
tree94ac93aeec79140dd63b56a2cf005cdf2cdd530b
parent39dec3bccc1688d620e15a526f924cb8315f74ee (diff)
downloadmailutils-cfb7e728be759f63987648acd08bf2f2e4ee85dc.tar.gz
mailutils-cfb7e728be759f63987648acd08bf2f2e4ee85dc.tar.bz2
forgot to move some functions pop3_xx() --> pop3d_xx()
-rw-r--r--imap4d/Makefile.am2
-rw-r--r--mail/Makefile.am2
-rw-r--r--mailbox/Makefile.am2
-rw-r--r--pop3d/Makefile.am2
-rw-r--r--pop3d/pop3d.c6
-rw-r--r--pop3d/pop3d.h1
-rw-r--r--pop3d/quit.c2
-rw-r--r--pop3d/retr.c6
-rw-r--r--pop3d/rset.c2
-rw-r--r--pop3d/signal.c4
-rw-r--r--pop3d/stat.c2
-rw-r--r--pop3d/top.c10
-rw-r--r--pop3d/uidl.c2
-rw-r--r--pop3d/user.c14
14 files changed, 29 insertions, 28 deletions
diff --git a/imap4d/Makefile.am b/imap4d/Makefile.am
index 7c42768ff..ec54db9a8 100644
--- a/imap4d/Makefile.am
+++ b/imap4d/Makefile.am
@@ -1,6 +1,6 @@
AUTOMAKE_OPTIONS = ../lib/ansi2knr
INCLUDES = -I$(top_srcdir)/lib -I$(top_srcdir)/include
-CFLAGS = -Wall -pedantic -ansi
+CFLAGS = -Wall -ansi
sbin_PROGRAMS = imap4d
diff --git a/mail/Makefile.am b/mail/Makefile.am
index 86d031294..a529e6d8d 100644
--- a/mail/Makefile.am
+++ b/mail/Makefile.am
@@ -1,6 +1,6 @@
AUTOMAKE_OPTIONS = ../lib/ansi2knr no-dependencies
-CFLAGS = -Wall -pedantic -g
+CFLAGS = -Wall -g
INCLUDES = -I${top_srcdir}/include -I${top_srcdir}/lib @ARGPINCS@
diff --git a/mailbox/Makefile.am b/mailbox/Makefile.am
index 2b7375785..61bce1cec 100644
--- a/mailbox/Makefile.am
+++ b/mailbox/Makefile.am
@@ -4,7 +4,7 @@ AUTOMAKE_OPTIONS = ../lib/ansi2knr
INCLUDES = -I${top_srcdir}/include -I${top_srcdir}/mailbox/include \
-I${top_srcdir}/lib
-CFLAGS = -Wall -pedantic -g
+CFLAGS = -Wall -g
SUBDIRS = include
diff --git a/pop3d/Makefile.am b/pop3d/Makefile.am
index 1ef7bb967..ee510e6b4 100644
--- a/pop3d/Makefile.am
+++ b/pop3d/Makefile.am
@@ -1,6 +1,6 @@
AUTOMAKE_OPTIONS = ../lib/ansi2knr
INCLUDES =-I$(srcdir) -I$(top_srcdir)/lib -I$(top_srcdir)/include
-CFLAGS = -Wall -pedantic -g
+CFLAGS = -Wall -g
sbin_PROGRAMS = pop3d
diff --git a/pop3d/pop3d.c b/pop3d/pop3d.c
index 09354b5ce..b3753ae03 100644
--- a/pop3d/pop3d.c
+++ b/pop3d/pop3d.c
@@ -271,13 +271,13 @@ pop3d_mainloop (int infile, int outfile)
if (state == TRANSACTION && !mailbox_is_updated (mbox))
{
- static size_t mailbox_size;
- size_t newsize = 0;
+ static off_t mailbox_size;
+ off_t newsize = 0;
mailbox_get_size (mbox, &newsize);
/* Did we shrink? */
if (!mailbox_size)
mailbox_size = newsize;
- else (newsize < mailbox_size)
+ else if (newsize < mailbox_size)
pop3d_abquit (ERR_MBOX_SYNC);
}
diff --git a/pop3d/pop3d.h b/pop3d/pop3d.h
index 739225588..79e5d01ea 100644
--- a/pop3d/pop3d.h
+++ b/pop3d/pop3d.h
@@ -87,6 +87,7 @@
#include <sys/wait.h>
#include <sys/socket.h>
#include <netinet/in.h>
+#include <arpa/inet.h>
#include <netdb.h>
#include <pwd.h>
#include <grp.h>
diff --git a/pop3d/quit.c b/pop3d/quit.c
index baeed7ed9..002bd7205 100644
--- a/pop3d/quit.c
+++ b/pop3d/quit.c
@@ -24,7 +24,7 @@
and closes the TCP connection. */
int
-pop3_quit (const char *arg)
+pop3d_quit (const char *arg)
{
int err = OK;
if (strlen (arg) != 0)
diff --git a/pop3d/retr.c b/pop3d/retr.c
index a14aa8cc3..d9fdc933d 100644
--- a/pop3d/retr.c
+++ b/pop3d/retr.c
@@ -20,7 +20,7 @@
/* Prints out the specified message */
int
-pop3_retr (const char *arg)
+pop3d_retr (const char *arg)
{
size_t mesgno, n;
char *buf;
@@ -51,7 +51,7 @@ pop3_retr (const char *arg)
off = n = 0;
buf = malloc (buflen * sizeof (*buf));
if (buf == NULL)
- pop3_abquit (ERR_NO_MEM);
+ pop3d_abquit (ERR_NO_MEM);
while (stream_readline (stream, buf, buflen, off, &n) == 0
&& n > 0)
@@ -64,7 +64,7 @@ pop3_retr (const char *arg)
buflen *= 2;
buf = realloc (buf, buflen * sizeof (*buf));
if (buf == NULL)
- pop3_abquit (ERR_NO_MEM);
+ pop3d_abquit (ERR_NO_MEM);
continue;
}
if (buf[0] == '.')
diff --git a/pop3d/rset.c b/pop3d/rset.c
index da41847ab..70c409fac 100644
--- a/pop3d/rset.c
+++ b/pop3d/rset.c
@@ -20,7 +20,7 @@
/* Resets the connection so that no messages are marked as deleted */
int
-pop3_rset (const char *arg)
+pop3d_rset (const char *arg)
{
size_t i;
size_t total = 0;
diff --git a/pop3d/signal.c b/pop3d/signal.c
index fd2e65727..e3138e5d1 100644
--- a/pop3d/signal.c
+++ b/pop3d/signal.c
@@ -19,7 +19,7 @@
#include "pop3d.h"
void
-pop3_sigchld (int signo)
+pop3d_sigchld (int signo)
{
pid_t pid;
int status;
@@ -32,7 +32,7 @@ pop3_sigchld (int signo)
#ifndef HAVE_SIGACTION
/* On some system, signal implements the unreliabe sematic and
has to be rearm. */
- signal (SIGCHLD, pop3_sigchld);
+ signal (SIGCHLD, pop3d_sigchld);
#endif
errno = old_errno;
}
diff --git a/pop3d/stat.c b/pop3d/stat.c
index 4e4b4bf37..1a71c636d 100644
--- a/pop3d/stat.c
+++ b/pop3d/stat.c
@@ -20,7 +20,7 @@
/* Prints the number of messages and the total size of all messages */
int
-pop3_stat (const char *arg)
+pop3d_stat (const char *arg)
{
size_t mesgno;
size_t size = 0;
diff --git a/pop3d/top.c b/pop3d/top.c
index 75ad67b8d..80eca6dd1 100644
--- a/pop3d/top.c
+++ b/pop3d/top.c
@@ -20,7 +20,7 @@
/* Prints the header of a message plus a specified number of lines. */
int
-pop3_top (const char *arg)
+pop3d_top (const char *arg)
{
size_t mesgno;
int lines;
@@ -41,8 +41,8 @@ pop3_top (const char *arg)
if (state != TRANSACTION)
return ERR_WRONG_STATE;
- mesgc = pop3_cmd (arg);
- linesc = pop3_args (arg);
+ mesgc = pop3d_cmd (arg);
+ linesc = pop3d_args (arg);
mesgno = strtoul (mesgc, NULL, 10);
lines = strlen (linesc) > 0 ? strtol (linesc, NULL, 10) : -1;
free (mesgc);
@@ -65,7 +65,7 @@ pop3_top (const char *arg)
header_get_stream (hdr, &stream);
buf = malloc (buflen * sizeof (*buf));
if (buf == NULL)
- pop3_abquit (ERR_NO_MEM);
+ pop3d_abquit (ERR_NO_MEM);
off = n = 0;
while (stream_readline (stream, buf, buflen, off, &n) == 0
&& n > 0)
@@ -98,7 +98,7 @@ pop3_top (const char *arg)
buflen *= 2;
buf = realloc (buf, buflen * sizeof (*buf));
if (buf == NULL)
- pop3_abquit (ERR_NO_MEM);
+ pop3d_abquit (ERR_NO_MEM);
continue;
}
if (buf[0] == '.')
diff --git a/pop3d/uidl.c b/pop3d/uidl.c
index bd1498682..0a8a0084a 100644
--- a/pop3d/uidl.c
+++ b/pop3d/uidl.c
@@ -18,7 +18,7 @@
#include "pop3d.h"
int
-pop3_uidl (const char *arg)
+pop3d_uidl (const char *arg)
{
size_t mesgno;
char uidl[128];
diff --git a/pop3d/user.c b/pop3d/user.c
index 534170d5b..854a370a0 100644
--- a/pop3d/user.c
+++ b/pop3d/user.c
@@ -77,7 +77,7 @@ static struct pam_conv PAM_conversation = { &PAM_gnupop3d_conv, NULL };
otherwise it will (likely) return ERR_BAD_LOGIN */
int
-pop3_user (const char *arg)
+pop3d_user (const char *arg)
{
char *buf, pass[POP_MAXCMDLEN], *tmp, *cmd;
struct passwd *pw;
@@ -96,9 +96,9 @@ pop3_user (const char *arg)
fprintf (ofile, "+OK\r\n");
fflush (ofile);
- buf = pop3_readline (ifile);
- cmd = pop3_cmd (buf);
- tmp = pop3_args (buf);
+ buf = pop3d_readline (ifile);
+ cmd = pop3d_cmd (buf);
+ tmp = pop3d_args (buf);
free (buf);
if (strlen (tmp) > POP_MAXCMDLEN)
@@ -125,7 +125,7 @@ pop3_user (const char *arg)
#ifdef _USE_APOP
/* Check to see if they have an APOP password. If so, refuse USER/PASS */
- tmp = pop3_apopuser (arg);
+ tmp = pop3d_apopuser (arg);
if (tmp != NULL)
{
syslog (LOG_INFO, "APOP user %s tried to log in with USER", arg);
@@ -201,7 +201,7 @@ pam_errlab:
username = strdup (arg);
if (username == NULL)
- pop3_abquit (ERR_NO_MEM);
+ pop3d_abquit (ERR_NO_MEM);
state = TRANSACTION;
if (pw != NULL && pw->pw_uid > 1)
@@ -221,7 +221,7 @@ pam_errlab:
{
syslog (LOG_INFO, "Possible probe of account '%s'", arg);
free (cmd);
- return pop3_quit (pass);
+ return pop3d_quit (pass);
}
free (cmd);

Return to:

Send suggestions and report system problems to the System administrator.