diff options
| author | Philip Kaufmann <[email protected]> | 2012-05-20 00:46:23 +0200 |
|---|---|---|
| committer | Philip Kaufmann <[email protected]> | 2012-05-20 00:48:34 +0200 |
| commit | 00fb08158d8a3a0d00f9d0360f376782b42f7d02 (patch) | |
| tree | 7acd0115044548380f228cf97e0f732d98e04688 /src/init.cpp | |
| parent | Merge pull request #1360 from jgarzik/datasync (diff) | |
| download | discoin-00fb08158d8a3a0d00f9d0360f376782b42f7d02.tar.xz discoin-00fb08158d8a3a0d00f9d0360f376782b42f7d02.zip | |
remove strncasecmp() + strnicmp() calls and replace that code via boost::algorithm::istarts_with() / do not call ipcInit() on Mac and Windows as this is unneeded currently
Diffstat (limited to 'src/init.cpp')
| -rw-r--r-- | src/init.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/init.cpp b/src/init.cpp index 829600a4f..524c68138 100644 --- a/src/init.cpp +++ b/src/init.cpp @@ -13,6 +13,7 @@ #include <boost/filesystem/fstream.hpp> #include <boost/filesystem/convenience.hpp> #include <boost/interprocess/sync/file_lock.hpp> +#include <boost/algorithm/string/predicate.hpp> #ifndef WIN32 #include <signal.h> @@ -136,7 +137,7 @@ bool AppInit(int argc, char* argv[]) // Command-line RPC for (int i = 1; i < argc; i++) - if (!IsSwitchChar(argv[i][0]) && !(strlen(argv[i]) > 7 && strncasecmp(argv[i], "bitcoin:", 8) == 0)) + if (!IsSwitchChar(argv[i][0]) && !boost::algorithm::istarts_with(argv[i], "bitcoin:")) fCommandLine = true; if (fCommandLine) |