From owner-freebsd-ports Sat Jan 29 8: 0:11 2000 Delivered-To: freebsd-ports@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (Postfix) with ESMTP id 6A83815AAA for ; Sat, 29 Jan 2000 08:00:04 -0800 (PST) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.9.3/8.9.2) id IAA82657; Sat, 29 Jan 2000 08:00:03 -0800 (PST) (envelope-from gnats@FreeBSD.org) Received: from cichlids.com (pC19F5470.dip0.t-ipconnect.de [193.159.84.112]) by hub.freebsd.org (Postfix) with ESMTP id A795615999 for ; Sat, 29 Jan 2000 07:59:43 -0800 (PST) (envelope-from alex@cichlids.com) Received: from cichlids.cichlids.com (cichlids.cichlids.com [192.168.0.10]) by cichlids.com (Postfix) with ESMTP id A5E5CAB96 for ; Sat, 29 Jan 2000 17:00:48 +0100 (CET) Received: (from alex@localhost) by cichlids.cichlids.com (8.9.3/8.9.3) id RAA06466; Sat, 29 Jan 2000 17:00:09 +0100 (CET) (envelope-from alex) Message-Id: <200001291600.RAA06466@cichlids.cichlids.com> Date: Sat, 29 Jan 2000 17:00:09 +0100 (CET) From: Alexander Langer Reply-To: alex@cichlids.com To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.2 Subject: ports/16443: fix net/libsocket++ (bentofied) Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >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