Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

multi.c: Corrected a couple of violations of the curl coding standards

Corrected some incorrectly positioned pointer variable declarations to
be "type *" rather than "type* ".
  • Loading branch information...
commit d85647cfddd5b1c0ae5623d91ae7cc3807350807 1 parent c0c46c3
Steve Holme captain-caveman2k authored

Showing 1 changed file with 5 additions and 5 deletions. Show diff stats Hide diff stats

  1. +5 5 lib/multi.c
10 lib/multi.c
@@ -213,16 +213,16 @@ static void sh_freeentry(void *freethis)
213 213 free(p);
214 214 }
215 215
216   -static size_t fd_key_compare(void*k1, size_t k1_len, void*k2, size_t k2_len)
  216 +static size_t fd_key_compare(void *k1, size_t k1_len, void *k2, size_t k2_len)
217 217 {
218 218 (void) k1_len; (void) k2_len;
219 219
220   - return (*((int* ) k1)) == (*((int* ) k2));
  220 + return (*((int *) k1)) == (*((int *) k2));
221 221 }
222 222
223   -static size_t hash_fd(void* key, size_t key_length, size_t slots_num)
  223 +static size_t hash_fd(void *key, size_t key_length, size_t slots_num)
224 224 {
225   - int fd = * ((int* ) key);
  225 + int fd = *((int *) key);
226 226 (void) key_length;
227 227
228 228 return (fd % (int)slots_num);
@@ -634,7 +634,7 @@ CURLMcode curl_multi_remove_handle(CURLM *multi_handle,
634 634 return CURLM_BAD_EASY_HANDLE; /* twasn't found */
635 635 }
636 636
637   -bool Curl_multi_pipeline_enabled(const struct Curl_multi* multi)
  637 +bool Curl_multi_pipeline_enabled(const struct Curl_multi *multi)
638 638 {
639 639 return (multi && multi->pipelining_enabled) ? TRUE : FALSE;
640 640 }

0 comments on commit d85647c

Please sign in to comment.
Something went wrong with that request. Please try again.