aboutsummaryrefslogtreecommitdiff
path: root/src/irc.cpp
diff options
context:
space:
mode:
authorGavin Andresen <gavinandresen@gmail.com>2012-04-17 10:55:56 -0700
committerGavin Andresen <gavinandresen@gmail.com>2012-04-17 10:55:56 -0700
commitb97d54355e8239273b50c54dbedfde16ed82fd73 (patch)
tree7c605817ec5a41b86b5656916eaa014e13fb247f /src/irc.cpp
parente873dc654c81810272e71af8b52a3836d2c8bf0a (diff)
parent9fb89c26f3a3991d197b207f44ef79b1d16c26fc (diff)
Merge pull request #1106 from jgarzik/sign-compare
Fix many sign-comparison warnings found in bitcoin codebase
Diffstat (limited to 'src/irc.cpp')
-rw-r--r--src/irc.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/irc.cpp b/src/irc.cpp
index 09bacc1658..d535f59c4c 100644
--- a/src/irc.cpp
+++ b/src/irc.cpp
@@ -108,13 +108,13 @@ int RecvUntil(SOCKET hSocket, const char* psz1, const char* psz2=NULL, const cha
if (!RecvLineIRC(hSocket, strLine))
return 0;
printf("IRC %s\n", strLine.c_str());
- if (psz1 && strLine.find(psz1) != -1)
+ if (psz1 && strLine.find(psz1) != string::npos)
return 1;
- if (psz2 && strLine.find(psz2) != -1)
+ if (psz2 && strLine.find(psz2) != string::npos)
return 2;
- if (psz3 && strLine.find(psz3) != -1)
+ if (psz3 && strLine.find(psz3) != string::npos)
return 3;
- if (psz4 && strLine.find(psz4) != -1)
+ if (psz4 && strLine.find(psz4) != string::npos)
return 4;
}
}