mirror of
https://github.com/curl/curl.git
synced 2026-07-24 16:47:16 +03:00
checksrc: make sure sizeof() is used *with* parentheses
... and unify the source code to adhere. Closes #2563
This commit is contained in:
parent
f3d836b736
commit
cb529b713f
25 changed files with 77 additions and 64 deletions
|
|
@ -5,7 +5,7 @@
|
|||
* | (__| |_| | _ <| |___
|
||||
* \___|\___/|_| \_\_____|
|
||||
*
|
||||
* Copyright (C) 1998 - 2017, Daniel Stenberg, <daniel@haxx.se>, et al.
|
||||
* Copyright (C) 1998 - 2018, Daniel Stenberg, <daniel@haxx.se>, et al.
|
||||
*
|
||||
* This software is licensed as described in the file COPYING, which
|
||||
* you should have received as part of this distribution. The terms
|
||||
|
|
@ -111,7 +111,7 @@ err:
|
|||
|
||||
fprintf(stderr, "error adding certificate\n");
|
||||
if(error) {
|
||||
ERR_error_string_n(error, errbuf, sizeof errbuf);
|
||||
ERR_error_string_n(error, errbuf, sizeof(errbuf));
|
||||
fprintf(stderr, "%s\n", errbuf);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@
|
|||
* | (__| |_| | _ <| |___
|
||||
* \___|\___/|_| \_\_____|
|
||||
*
|
||||
* Copyright (C) 1998 - 2016, Daniel Stenberg, <daniel@haxx.se>, et al.
|
||||
* Copyright (C) 1998 - 2018, Daniel Stenberg, <daniel@haxx.se>, et al.
|
||||
*
|
||||
* This software is licensed as described in the file COPYING, which
|
||||
* you should have received as part of this distribution. The terms
|
||||
|
|
@ -50,7 +50,7 @@ static curl_context_t* create_curl_context(curl_socket_t sockfd)
|
|||
{
|
||||
curl_context_t *context;
|
||||
|
||||
context = (curl_context_t *) malloc(sizeof *context);
|
||||
context = (curl_context_t *) malloc(sizeof(*context));
|
||||
|
||||
context->sockfd = sockfd;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue