diff options
author | Steve Holme <steve_holme@hotmail.com> | 2013-03-21 19:14:03 +0000 |
---|---|---|
committer | Steve Holme <steve_holme@hotmail.com> | 2013-03-21 19:14:03 +0000 |
commit | d85647cfddd5b1c0ae5623d91ae7cc3807350807 (patch) | |
tree | 3770a6d66a6370259232ff23ec26bf67d04eed27 /lib | |
parent | c0c46c3137a3f1dea014cfa69588c4e121710cf7 (diff) |
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* ".
Diffstat (limited to 'lib')
-rw-r--r-- | lib/multi.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/multi.c b/lib/multi.c index 5645fcf07..7d795cf3d 100644 --- a/lib/multi.c +++ b/lib/multi.c @@ -213,16 +213,16 @@ static void sh_freeentry(void *freethis) free(p); } -static size_t fd_key_compare(void*k1, size_t k1_len, void*k2, size_t k2_len) +static size_t fd_key_compare(void *k1, size_t k1_len, void *k2, size_t k2_len) { (void) k1_len; (void) k2_len; - return (*((int* ) k1)) == (*((int* ) k2)); + return (*((int *) k1)) == (*((int *) k2)); } -static size_t hash_fd(void* key, size_t key_length, size_t slots_num) +static size_t hash_fd(void *key, size_t key_length, size_t slots_num) { - int fd = * ((int* ) key); + int fd = *((int *) key); (void) key_length; return (fd % (int)slots_num); @@ -634,7 +634,7 @@ CURLMcode curl_multi_remove_handle(CURLM *multi_handle, return CURLM_BAD_EASY_HANDLE; /* twasn't found */ } -bool Curl_multi_pipeline_enabled(const struct Curl_multi* multi) +bool Curl_multi_pipeline_enabled(const struct Curl_multi *multi) { return (multi && multi->pipelining_enabled) ? TRUE : FALSE; } |