mirror of
https://github.com/curl/curl.git
synced 2026-08-25 15:53:39 +03:00
code style: use spaces around equals signs
This commit is contained in:
parent
e155f38d1e
commit
6b84438d9a
144 changed files with 995 additions and 990 deletions
|
|
@ -63,7 +63,7 @@ static unsigned long thread_id(void)
|
|||
{
|
||||
unsigned long ret;
|
||||
|
||||
ret=(unsigned long)pthread_self();
|
||||
ret = (unsigned long)pthread_self();
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
|
@ -71,9 +71,9 @@ static void init_locks(void)
|
|||
{
|
||||
int i;
|
||||
|
||||
lockarray=(pthread_mutex_t *)OPENSSL_malloc(CRYPTO_num_locks() *
|
||||
sizeof(pthread_mutex_t));
|
||||
for(i=0; i<CRYPTO_num_locks(); i++) {
|
||||
lockarray = (pthread_mutex_t *)OPENSSL_malloc(CRYPTO_num_locks() *
|
||||
sizeof(pthread_mutex_t));
|
||||
for(i = 0; i<CRYPTO_num_locks(); i++) {
|
||||
pthread_mutex_init(&(lockarray[i]), NULL);
|
||||
}
|
||||
|
||||
|
|
@ -86,7 +86,7 @@ static void kill_locks(void)
|
|||
int i;
|
||||
|
||||
CRYPTO_set_locking_callback(NULL);
|
||||
for(i=0; i<CRYPTO_num_locks(); i++)
|
||||
for(i = 0; i<CRYPTO_num_locks(); i++)
|
||||
pthread_mutex_destroy(&(lockarray[i]));
|
||||
|
||||
OPENSSL_free(lockarray);
|
||||
|
|
@ -144,7 +144,7 @@ int main(int argc, char **argv)
|
|||
|
||||
init_locks();
|
||||
|
||||
for(i=0; i< NUMT; i++) {
|
||||
for(i = 0; i< NUMT; i++) {
|
||||
error = pthread_create(&tid[i],
|
||||
NULL, /* default attributes please */
|
||||
pull_one_url,
|
||||
|
|
@ -156,7 +156,7 @@ int main(int argc, char **argv)
|
|||
}
|
||||
|
||||
/* now wait for all threads to terminate */
|
||||
for(i=0; i< NUMT; i++) {
|
||||
for(i = 0; i< NUMT; i++) {
|
||||
error = pthread_join(tid[i], NULL);
|
||||
fprintf(stderr, "Thread %d terminated\n", i);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue