diff options
| author | Daniel Stenberg <daniel@haxx.se> | 2018-05-11 23:40:58 +0200 | 
|---|---|---|
| committer | Daniel Stenberg <daniel@haxx.se> | 2018-05-21 23:21:47 +0200 | 
| commit | cb529b713f4882ac65a074ae8d87faa41d19168e (patch) | |
| tree | b9f23f33a817107127020630c7b9b5764e8685f0 /docs/examples | |
| parent | f3d836b73601fc6d14cb917e1cd72f43b9056dff (diff) | |
checksrc: make sure sizeof() is used *with* parentheses
... and unify the source code to adhere.
Closes #2563
Diffstat (limited to 'docs/examples')
| -rw-r--r-- | docs/examples/cacertinmem.c | 4 | ||||
| -rw-r--r-- | docs/examples/multi-uv.c | 4 | 
2 files changed, 4 insertions, 4 deletions
diff --git a/docs/examples/cacertinmem.c b/docs/examples/cacertinmem.c index cf7c76e14..6f4c61cbf 100644 --- a/docs/examples/cacertinmem.c +++ b/docs/examples/cacertinmem.c @@ -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);      }    } diff --git a/docs/examples/multi-uv.c b/docs/examples/multi-uv.c index ceddad04a..1d8c96f58 100644 --- a/docs/examples/multi-uv.c +++ b/docs/examples/multi-uv.c @@ -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;  | 
