0
0
Fork 0
mirror of https://github.com/bitcoin/bitcoin.git synced 2025-02-03 09:56:38 -05:00
bitcoin-bitcoin-core/src
Giel van Schijndel d7f1d200ab fix warning: comparison of unsigned expression < 0 is always false [-Wtautological-compare]
Don't check for a negative parameter count, because not only will it
never happen, it doesn't make any sense either.

Invalid sockets (as returned by socket(2)) are always exactly -1 (not
just negative as negative file descriptors are technically not
prohibited by POSIX) on POSIX systems.  Since we store them in SOCKET
(unsigned int), however, that really is ~0U (or MAX_UINT) which happens
to be what INVALID_SOCKET is already defined to, so an additional check
for being negative is not only unnecessary (unsigned integers aren't
*ever* negative) its redundant as well (the INVALID_SOCKET comparison is
enough).

Signed-off-by: Giel van Schijndel <me@mortis.eu>
2011-07-13 05:07:44 +02:00
..
cryptopp directory re-organization (keeps the old build system) 2011-04-23 12:10:25 +02:00
json directory re-organization (keeps the old build system) 2011-04-23 12:10:25 +02:00
obj Boost unit-testing framework. 2011-06-27 14:12:48 -04:00
test Boost unit-testing framework. 2011-06-27 14:12:48 -04:00
xpm directory re-organization (keeps the old build system) 2011-04-23 12:10:25 +02:00
base58.h Demystify a few magic numbers. 2011-06-06 12:49:11 -05:00
bignum.h Demystify a few magic numbers. 2011-06-06 12:49:11 -05:00
crypter.cpp Add wallet privkey encryption. 2011-07-13 02:11:25 +02:00
crypter.h Add wallet privkey encryption. 2011-07-13 02:11:25 +02:00
db.cpp Merge pull request #381 from TheBlueMatt/nminversion 2011-07-12 19:34:30 -07:00
db.h fix warnings: expression result unused [-Wunused-value] 2011-07-13 05:07:44 +02:00
headers.h move wallet code to separate file 2011-06-15 11:05:55 +02:00
init.cpp Merge pull request #381 from TheBlueMatt/nminversion 2011-07-12 19:34:30 -07:00
init.h CWallet class 2011-06-15 11:05:55 +02:00
irc.cpp Merge pull request #226 from jordanlewis/betterheaders 2011-06-14 02:05:57 -07:00
irc.h make bitcoin include files more modular 2011-05-15 12:04:20 +02:00
key.h Do not use obsolete CPrivKey for passing keys around 2011-07-13 02:11:25 +02:00
keystore.cpp Do not use obsolete CPrivKey for passing keys around 2011-07-13 02:11:25 +02:00
keystore.h Do not use obsolete CPrivKey for passing keys around 2011-07-13 02:11:25 +02:00
main.cpp fix warnings: expression result unused [-Wunused-value] 2011-07-13 05:07:44 +02:00
main.h Merge pull request #352 from TheBlueMatt/newenc 2011-07-12 19:10:12 -07:00
makefile.linux-mingw Update makefile.linux-mingw to work with crypter and UPnP fix. 2011-07-12 22:44:00 -04:00
makefile.mingw Add wallet privkey encryption. 2011-07-13 02:11:25 +02:00
makefile.osx Add wallet privkey encryption. 2011-07-13 02:11:25 +02:00
makefile.unix Add wallet privkey encryption. 2011-07-13 02:11:25 +02:00
makefile.vc Add keystore.h to makefile.vs's header list. 2011-07-01 20:17:10 -04:00
net.cpp fix warning: comparison of unsigned expression < 0 is always false [-Wtautological-compare] 2011-07-13 05:07:44 +02:00
net.h Limit response to getblocks to half of output buffer size 2011-07-01 09:39:44 +02:00
noui.h move wallet code to separate file 2011-06-15 11:05:55 +02:00
rpc.cpp fix warning: comparison of unsigned expression < 0 is always false [-Wtautological-compare] 2011-07-13 05:07:44 +02:00
rpc.h directory re-organization (keeps the old build system) 2011-04-23 12:10:25 +02:00
script.cpp Do not use obsolete CPrivKey for passing keys around 2011-07-13 02:11:25 +02:00
script.h fix warnings: expression result unused [-Wunused-value] 2011-07-13 05:07:44 +02:00
serialize.h Make mlock() and munlock() portable to systems that require the address to be on a page boundary. 2011-07-10 18:15:05 +02:00
strlcpy.h make bitcoin include files more modular 2011-05-15 12:04:20 +02:00
ui.cpp Merge pull request #352 from TheBlueMatt/newenc 2011-07-12 19:10:12 -07:00
ui.h Add wallet privkey encryption. 2011-07-13 02:11:25 +02:00
uibase.cpp Dynamically remove/insert the Options for encryption in the menus. 2011-07-13 02:11:25 +02:00
uibase.h Dynamically remove/insert the Options for encryption in the menus. 2011-07-13 02:11:25 +02:00
uint256.h make bitcoin include files more modular 2011-05-15 12:04:20 +02:00
util.cpp fix warnings: using the result of an assignment as a condition without parentheses [-Wparentheses] 2011-07-13 05:07:44 +02:00
util.h fix warnings: expression result unused [-Wunused-value] 2011-07-13 05:07:44 +02:00
wallet.cpp Merge pull request #381 from TheBlueMatt/nminversion 2011-07-12 19:34:30 -07:00
wallet.h Use DB Transactions when encrypting wallet. 2011-07-13 02:11:25 +02:00