ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/svn/ircd-hybrid/trunk/src/s_bsd.c
(Generate patch)

Comparing ircd-hybrid-7.2/src/s_bsd.c (file contents):
Revision 950 by michael, Tue Jul 21 23:07:52 2009 UTC vs.
Revision 967 by michael, Sun Aug 2 18:05:28 2009 UTC

# Line 109 | Line 109 | get_sockerr(int fd)
109    int err = 0;
110    socklen_t len = sizeof(err);
111  
112 <  if (-1 < fd && !getsockopt(fd, SOL_SOCKET, SO_ERROR, (char*) &err, (socklen_t *)&len))
112 >  if (-1 < fd && !getsockopt(fd, SOL_SOCKET, SO_ERROR, &err, &len))
113    {
114      if (err)
115        errtmp = err;
# Line 159 | Line 159 | setup_socket(va_list args)
159    int fd = va_arg(args, int);
160    int opt = 1;
161  
162 <  setsockopt(fd, IPPROTO_TCP, TCP_NODELAY, (char *) &opt, sizeof(opt));
162 >  setsockopt(fd, IPPROTO_TCP, TCP_NODELAY, &opt, sizeof(opt));
163  
164   #ifdef IPTOS_LOWDELAY
165    opt = IPTOS_LOWDELAY;
166 <  setsockopt(fd, IPPROTO_IP, IP_TOS, (char *) &opt, sizeof(opt));
166 >  setsockopt(fd, IPPROTO_IP, IP_TOS, &opt, sizeof(opt));
167   #endif
168  
169   #ifndef _WIN32
# Line 362 | Line 362 | add_connection(struct Listener *listener
362   #ifdef HAVE_LIBCRYPTO
363    if (listener->flags & LISTENER_SSL)
364    {
365 <    if ((new_client->localClient->fd.ssl = SSL_new(ServerInfo.ctx)) == NULL)
365 >    if ((new_client->localClient->fd.ssl = SSL_new(ServerInfo.server_ctx)) == NULL)
366      {
367        ilog(L_CRIT, "SSL_new() ERROR! -- %s",
368             ERR_error_string(ERR_get_error(), NULL));

Diff Legend

Removed lines
+ Added lines
< Changed lines (old)
> Changed lines (new)