From owner-freebsd-ports Sat Nov 23 16:20: 5 2002 Delivered-To: freebsd-ports@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4CF5037B401 for ; Sat, 23 Nov 2002 16:20:02 -0800 (PST) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8FA4B43E88 for ; Sat, 23 Nov 2002 16:20:01 -0800 (PST) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.6/8.12.6) with ESMTP id gAO0K1x3016205 for ; Sat, 23 Nov 2002 16:20:01 -0800 (PST) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.6/8.12.6/Submit) id gAO0K1SY016204; Sat, 23 Nov 2002 16:20:01 -0800 (PST) Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3013C37B401 for ; Sat, 23 Nov 2002 16:12:10 -0800 (PST) Received: from fafoe.dyndns.org (chello212186121237.14.vie.surfer.at [212.186.121.237]) by mx1.FreeBSD.org (Postfix) with ESMTP id A3B8243E3B for ; Sat, 23 Nov 2002 16:12:09 -0800 (PST) (envelope-from stefan@fafoe.dyndns.org) Received: by frog.fafoe (Postfix, from userid 1001) id 09B7C379; Sun, 24 Nov 2002 01:12:07 +0100 (CET) Message-Id: <20021124001207.09B7C379@frog.fafoe> Date: Sun, 24 Nov 2002 01:12:07 +0100 (CET) From: Stefan Farfeleder Reply-To: Stefan Farfeleder To: FreeBSD-gnats-submit@FreeBSD.org Cc: e0026813@stud3.tuwien.ac.at X-Send-Pr-Version: 3.113 Subject: ports/45657: [PATCH] Fix irc/bobot++ on -current Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org >Number: 45657 >Category: ports >Synopsis: [PATCH] Fix irc/bobot++ on -current >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sat Nov 23 16:20:00 PST 2002 >Closed-Date: >Last-Modified: >Originator: Stefan Farfeleder >Release: FreeBSD 5.0-CURRENT i386 >Organization: >Environment: System: FreeBSD frog.fafoe 5.0-CURRENT FreeBSD 5.0-CURRENT #2: Fri Nov 22 17:42:48 CET 2002 freebsd@frog.fafoe:/freebsd/current/obj/freebsd/current/src/sys/FROG i386 >Description: bobot++ fails to compile with GCC 3.X due to code that does not comply to ANSI C++. 3 errors that caused the compilation to fail were fixed. >How-To-Repeat: portinstall bobot++ on -current. >Fix: --- bobot.diff begins here --- Index: files/patch-source::ChannelList.C =================================================================== RCS file: files/patch-source::ChannelList.C diff -N files/patch-source::ChannelList.C --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ files/patch-source::ChannelList.C 23 Nov 2002 20:42:34 -0000 @@ -0,0 +1,11 @@ +--- source/ChannelList.C.orig Sat Nov 23 21:40:56 2002 ++++ source/ChannelList.C Sat Nov 23 21:41:04 2002 +@@ -41,7 +41,7 @@ + } + + void +-ChannelList::addChannel(ServerConnection *cnx, String name, String wantedModes = "") ++ChannelList::addChannel(ServerConnection *cnx, String name, String wantedModes) + { + name = name.toLower(); + list[name] = new Channel(cnx, name, wantedModes); Index: files/patch-source::ServerList.C =================================================================== RCS file: files/patch-source::ServerList.C diff -N files/patch-source::ServerList.C --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ files/patch-source::ServerList.C 23 Nov 2002 20:50:29 -0000 @@ -0,0 +1,11 @@ +--- source/ServerList.C.orig Sat Nov 23 21:47:22 2002 ++++ source/ServerList.C Sat Nov 23 21:47:47 2002 +@@ -40,7 +40,7 @@ + void + ServerList::delServer(int n) + { +- v.erase(&v[n]); ++ v.erase(v.begin() + n); + } + + Server * Index: files/patch-source::TodoList.H =================================================================== RCS file: files/patch-source::TodoList.H diff -N files/patch-source::TodoList.H --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ files/patch-source::TodoList.H 23 Nov 2002 21:08:57 -0000 @@ -0,0 +1,11 @@ +--- source/TodoList.H.orig Sat Nov 23 21:55:46 2002 ++++ source/TodoList.H Sat Nov 23 22:07:57 2002 +@@ -23,6 +23,8 @@ + + #include "String.H" + ++using namespace std; ++ + class TodoList; + + class TodoListItem { --- bobot.diff 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