aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormarino <marino@FreeBSD.org>2013-10-03 07:09:55 +0800
committermarino <marino@FreeBSD.org>2013-10-03 07:09:55 +0800
commitcb7c18d8fe12d3aa861e4bff349142eca7b0f295 (patch)
treeb74e34500523056be7dfced8d2e49749771c2691
parent82b8ad4d0bde033fcc6507523c37b923f50d241b (diff)
downloadfreebsd-ports-graphics-cb7c18d8fe12d3aa861e4bff349142eca7b0f295.tar.gz
freebsd-ports-graphics-cb7c18d8fe12d3aa861e4bff349142eca7b0f295.tar.zst
freebsd-ports-graphics-cb7c18d8fe12d3aa861e4bff349142eca7b0f295.zip
irc/ezbounce: Fix c++ error caught by gcc 4.7
The same variable "e" was defined as a loop argument and then again inside the loop as a diferrent type. This renames the loop argument to avoid the redeclaration errors. Approved by: portmgr (bapt, implicit)
-rw-r--r--irc/ezbounce/files/patch-src_irc_flood.cc13
1 files changed, 13 insertions, 0 deletions
diff --git a/irc/ezbounce/files/patch-src_irc_flood.cc b/irc/ezbounce/files/patch-src_irc_flood.cc
new file mode 100644
index 00000000000..bd7cb8ce4f2
--- /dev/null
+++ b/irc/ezbounce/files/patch-src_irc_flood.cc
@@ -0,0 +1,13 @@
+--- src/irc/flood.cc.orig 2008-07-01 02:53:36.000000000 +0000
++++ src/irc/flood.cc
+@@ -204,8 +204,8 @@ void flood_protector::clear_expired(time
+ const seconds_t &max = *std::max_element(vals, vals+n) + 1;
+
+ for (nick_hash_t::const_iterator i = nick_hash.begin(),
+- e = nick_hash.end();
+- i != e;
++ ef = nick_hash.end();
++ i != ef;
+ ++i) {
+ flood_entry& e = *i->second;
+