Found some more...
Remove redundant c_str #4206
pull rebroad wants to merge 1 commits into bitcoin:master from rebroad:RemoveRedundantC_str changing 7 files +15 −15-
rebroad commented at 11:09 AM on May 21, 2014: contributor
-
Remove redundant c_str 79d06dc6e0
-
in src/init.cpp:None in 169643dbc1 outdated
913 | @@ -914,7 +914,7 @@ bool AppInit2(boost::thread_group& threadGroup) 914 | for (map<uint256, CBlockIndex*>::iterator mi = mapBlockIndex.begin(); mi != mapBlockIndex.end(); ++mi) 915 | { 916 | uint256 hash = (*mi).first; 917 | - if (strncmp(hash.ToString().c_str(), strMatch.c_str(), strMatch.size()) == 0)
sipa commented at 11:32 AM on May 21, 2014:strncmp is a C function, which requires C strings.
laanwj commented at 11:48 AM on May 21, 2014:Right, this shouldn't even build
laanwj commented at 12:38 PM on May 21, 2014:Seems like you could use boost::starts_with here instead. Personally I think that'd be cleaner than using a C function on two C++ strings.
BitcoinPullTester commented at 5:41 PM on May 21, 2014: noneAutomatic sanity-testing: PASSED, see http://jenkins.bluematt.me/pull-tester/79d06dc6e07103b31b530f71b7187ea82c34266b for binaries and test log. This test script verifies pulls every time they are updated. It, however, dies sometimes and fails to test properly. If you are waiting on a test, please check timestamps to verify that the test.log is moving at http://jenkins.bluematt.me/pull-tester/current/ Contact BlueMatt on freenode if something looks broken.
laanwj commented at 8:01 AM on May 23, 2014: memberACK on code changes + tested that -printblock still works as expected
laanwj merged this on May 25, 2014laanwj closed this on May 25, 2014laanwj referenced this in commit 73f7153f43 on May 25, 2014DrahtBot locked this on Sep 8, 2021Contributors
This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2026-04-22 18:15 UTC
More mirrored repositories can be found on mirror.b10c.me