]> git.ipfire.org Git - thirdparty/curl.git/commit
code cleanup: we prefer 'CURLcode result'
authorDaniel Stenberg <daniel@haxx.se>
Thu, 23 Oct 2014 20:56:35 +0000 (22:56 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Fri, 24 Oct 2014 06:23:19 +0000 (08:23 +0200)
commit0eb3d15ccb419bfda41ee31bdbf73c36facc7388
tree0c4abf7bf4bac279cbcfd708e1cdd1bcdf29bb77
parent1752e9c088d9bb7a3156dba9c66f7f64dd87afa9
code cleanup: we prefer 'CURLcode result'

... for the local variable name in functions holding the return
code. Using the same name universally makes code easier to read and
follow.

Also, unify code for checking for CURLcode errors with:

 if(result) or if(!result)

instead of

 if(result == CURLE_OK), if(CURLE_OK == result) or if(result != CURLE_OK)
27 files changed:
lib/conncache.c
lib/connect.c
lib/curl_addrinfo.c
lib/easy.c
lib/file.c
lib/formdata.c
lib/ftp.c
lib/gopher.c
lib/http.c
lib/http_digest.c
lib/http_proxy.c
lib/multi.c
lib/non-ascii.c
lib/pingpong.c
lib/security.c
lib/sendf.c
lib/socks.c
lib/socks_gssapi.c
lib/socks_sspi.c
lib/ssh.c
lib/strerror.c
lib/telnet.c
lib/tftp.c
lib/transfer.c
lib/url.c
lib/vtls/vtls.c
lib/x509asn1.c