Commit 1c8bb2b5 1c8bb2b5d58a82be7265bf53176677dc4e4fcd46 by uid65697

Fixed first argument to socket()

1 parent c5b57b85
......@@ -310,7 +310,7 @@ imap4d_daemon (unsigned int maxchildren, unsigned int port)
int listenfd, connfd;
size_t size;
listenfd = socket (AF_INET, SOCK_STREAM, 0);
listenfd = socket (PF_INET, SOCK_STREAM, 0);
if (listenfd == -1)
{
syslog (LOG_ERR, "socket: %s", strerror (errno));
......
......@@ -87,7 +87,7 @@ _tcp_open (stream_t stream)
case TCP_STATE_INIT:
if (tcp->fd == -1)
{
if ((tcp->fd = socket (AF_INET, SOCK_STREAM, 0)) == -1)
if ((tcp->fd = socket (PF_INET, SOCK_STREAM, 0)) == -1)
return errno;
}
if (flags & MU_STREAM_NONBLOCK)
......
......@@ -466,7 +466,7 @@ pop3d_daemon (unsigned int maxchildren, unsigned int port)
int listenfd, connfd;
size_t size;
listenfd = socket (AF_INET, SOCK_STREAM, 0);
listenfd = socket (PF_INET, SOCK_STREAM, 0);
if (listenfd == -1)
{
syslog (LOG_ERR, "socket: %s", strerror(errno));
......