Date: Sat, 29 Jan 2000 17:00:09 +0100 (CET) From: Alexander Langer <alex@cichlids.com> To: FreeBSD-gnats-submit@freebsd.org Subject: ports/16443: fix net/libsocket++ (bentofied) Message-ID: <200001291600.RAA06466@cichlids.cichlids.com>
next in thread | raw e-mail | index | archive | help
>Number: 16443 >Category: ports >Synopsis: fix net/libsocket++ (bentofied) >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Sat Jan 29 08:00:02 PST 2000 >Closed-Date: >Last-Modified: >Originator: Alexander Langer >Release: FreeBSD 4.0-CURRENT i386 >Organization: This space is intentionally left blank. >Environment: >Description: as bento found: fix conversion handling for C++ (add casts) >How-To-Repeat: see bento >Fix: add these as additional patches into the patches subdir of the port --- patch-ad begins here --- --- sockstream.C.old Sat Jan 29 16:47:41 2000 +++ sockstream.C Sat Jan 29 16:51:05 2000 @@ -275,7 +275,7 @@ { int len = sa.size (); int soc = -1; - while ((soc = ::accept (rep->sock, sa.addr (), &len)) == -1 + while ((soc = ::accept (rep->sock, sa.addr (), (socklen_t *) &len)) == -1 && errno == EINTR) errno = 0; if (soc == -1) @@ -322,7 +322,7 @@ int sa_len = sa.size (); if ((rval = ::recvfrom (rep->sock, (char*) buf, len, - msgf, sa.addr (), &sa_len)) == -1) + msgf, sa.addr (), (socklen_t *) &sa_len)) == -1) error ("sockbuf::recvfrom"); return (rval==0) ? EOF: rval; } @@ -491,7 +491,7 @@ int sockbuf::getopt (option op, void* buf, int len, level l) const { int rlen = len; - if (::getsockopt (rep->sock, l, op, (char*) buf, &rlen) == -1) + if (::getsockopt (rep->sock, l, op, (char*) buf, (socklen_t *) &rlen) == -1) perror ("sockbuf::getopt"); return rlen; } --- patch-ad ends here --- --- patch-ae begins here --- --- sockinet.C.old Sat Jan 29 16:57:13 2000 +++ sockinet.C Sat Jan 29 16:56:37 2000 @@ -144,7 +144,7 @@ { sockinetaddr sin; int len = sin.size(); - if (::getsockname(rep->sock, sin.addr (), &len) == -1) + if (::getsockname(rep->sock, sin.addr (), (socklen_t *) &len) == -1) perror("sockinetbuf::localaddr()"); return sin; } @@ -168,7 +168,7 @@ { sockinetaddr sin; int len = sin.size(); - if (::getpeername(rep->sock, sin.addr (), &len) == -1) + if (::getpeername(rep->sock, sin.addr (), (socklen_t *) &len) == -1) perror("sockinetbuf::peeraddr()"); return sin; } --- patch-ae ends here --- >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200001291600.RAA06466>