mirror of
https://git.freebsd.org/ports.git
synced 2025-07-18 17:59:20 -04:00
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)
This commit is contained in:
parent
034376c1d0
commit
bb69a303d0
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=329127
1 changed files with 13 additions and 0 deletions
13
irc/ezbounce/files/patch-src_irc_flood.cc
Normal file
13
irc/ezbounce/files/patch-src_irc_flood.cc
Normal file
|
@ -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;
|
||||
|
Loading…
Add table
Reference in a new issue