mirror of
https://github.com/curl/curl.git
synced 2026-08-25 00:13:34 +03:00
checksrc: warn for assignments within if() expressions
... they're already frowned upon in our source code style guide, this now enforces the rule harder.
This commit is contained in:
parent
b228d2952b
commit
1c3e8bbfed
86 changed files with 413 additions and 226 deletions
|
|
@ -1489,7 +1489,8 @@ static CURLcode telnet_do(struct connectdata *conn, bool *done)
|
|||
|
||||
events.lNetworkEvents = 0;
|
||||
if(SOCKET_ERROR == enum_netevents_func(sockfd, event_handle, &events)) {
|
||||
if((err = SOCKERRNO) != EINPROGRESS) {
|
||||
err = SOCKERRNO;
|
||||
if(err != EINPROGRESS) {
|
||||
infof(data, "WSAEnumNetworkEvents failed (%d)", err);
|
||||
keepon = FALSE;
|
||||
result = CURLE_READ_ERROR;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue