Date: Sun, 24 Nov 2002 01:12:07 +0100 (CET) From: Stefan Farfeleder <e0026813@stud3.tuwien.ac.at> To: FreeBSD-gnats-submit@FreeBSD.org Cc: e0026813@stud3.tuwien.ac.at Subject: ports/45657: [PATCH] Fix irc/bobot++ on -current Message-ID: <20021124001207.09B7C379@frog.fafoe>
next in thread | raw e-mail | index | archive | help
>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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20021124001207.09B7C379>