[curl/curl] 063d3f: tidy-up: make conditional checks more consistent

Daniel Stenberg <[email protected]>
Newsgroups gmane.comp.web.curl.cvs
Message-ID <curl/curl/push/refs/heads/bagder/checksrc-conditions/[email protected]>
  Branch: refs/heads/bagder/checksrc-conditions
  Home:   https://github.com/curl/curl
  Commit: 063d3f3b96e40b3bf770d04d90612064b9a53c49
      https://github.com/curl/curl/commit/063d3f3b96e40b3bf770d04d90612064b9a53c49
  Author: Daniel Stenberg <[email protected]>
  Date:   2021-04-22 (Thu, 22 Apr 2021)

  Changed paths:
    M docs/examples/curlx.c
    M docs/examples/externalsocket.c
    M docs/examples/fopen.c
    M docs/examples/getinmemory.c
    M docs/examples/rtsp.c
    M docs/examples/usercertinmem.c
    M lib/asyn-ares.c
    M lib/asyn-thread.c
    M lib/content_encoding.c
    M lib/cookie.c
    M lib/curl_addrinfo.c
    M lib/curl_gssapi.c
    M lib/curl_path.c
    M lib/dict.c
    M lib/easy.c
    M lib/ftp.c
    M lib/ftplistparser.c
    M lib/hash.c
    M lib/hostcheck.c
    M lib/http2.c
    M lib/http_negotiate.c
    M lib/http_ntlm.c
    M lib/inet_ntop.c
    M lib/krb5.c
    M lib/ldap.c
    M lib/llist.c
    M lib/md4.c
    M lib/mime.c
    M lib/mprintf.c
    M lib/multi.c
    M lib/non-ascii.c
    M lib/openldap.c
    M lib/rtsp.c
    M lib/select.c
    M lib/sendf.c
    M lib/setopt.c
    M lib/setup-vms.h
    M lib/share.c
    M lib/socks.c
    M lib/socks_gssapi.c
    M lib/socks_sspi.c
    M lib/splay.c
    M lib/system_win32.c
    M lib/tftp.c
    M lib/url.c
    M lib/vauth/cleartext.c
    M lib/vquic/ngtcp2.c
    M lib/vquic/quiche.c
    M lib/vssh/libssh.c
    M lib/vssh/libssh2.c
    M lib/vssh/wolfssh.c
    M lib/vtls/gtls.c
    M lib/vtls/nss.c
    M lib/vtls/openssl.c
    M lib/vtls/rustls.c
    M lib/vtls/schannel.c
    M lib/vtls/schannel_verify.c
    M lib/vtls/sectransp.c
    M src/tool_convert.c
    M src/tool_metalink.c
    M src/tool_operate.c
    M src/tool_vms.c
    M tests/libtest/lib1511.c
    M tests/libtest/lib1532.c
    M tests/libtest/lib1533.c
    M tests/libtest/lib1535.c
    M tests/libtest/lib1536.c
    M tests/libtest/lib510.c
    M tests/libtest/lib518.c
    M tests/libtest/lib537.c
    M tests/libtest/lib539.c
    M tests/libtest/lib556.c
    M tests/libtest/lib568.c
    M tests/libtest/lib569.c
    M tests/libtest/lib571.c
    M tests/libtest/lib572.c
    M tests/libtest/lib579.c
    M tests/libtest/lib661.c
    M tests/server/rtspd.c
    M tests/server/sockfilt.c
    M tests/server/socksd.c
    M tests/server/sws.c
    M tests/server/util.c
    M tests/unit/unit1309.c
    M tests/unit/unit1607.c

  Log Message:
  -----------
  tidy-up: make conditional checks more consistent

... remove '== NULL' and '!= 0'

Closes #6912


  Commit: 52fab72397687467650093c86e5479cb1d759042
      https://github.com/curl/curl/commit/52fab72397687467650093c86e5479cb1d759042
  Author: Daniel Stenberg <[email protected]>
  Date:   2021-04-22 (Thu, 22 Apr 2021)

  Changed paths:
    M docs/CHECKSRC.md
    M lib/checksrc.pl

  Log Message:
  -----------
  checksrc: complain on == NULL or != 0 checks in conditions

... to make them all consistenly use if(!var) and if(var)

Also added a few missing warnings to the documentation.

Closes #6912


Compare: https://github.com/curl/curl/compare/da38cd0e9f3c...52fab7239768
_______________________________________________
curl-commits mailing list
[email protected]
https://cool.haxx.se/cgi-bin/mailman/listinfo/curl-commits
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.