diff options
author | Daniel Stenberg <daniel@haxx.se> | 2016-04-03 22:51:52 +0200 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2016-04-03 22:52:34 +0200 |
commit | 6ddab23fb1e27e0ea938c8ec448f620295149c9d (patch) | |
tree | 3207247960bdd4e151434c33f896bd66110f125a /docs/examples/opensslthreadlock.c | |
parent | 3d94a113e90af20b1b894dc931d4422fea405490 (diff) |
docs/examples: remove spurious white spaces all over
... to please the new, slightly picker, checksrc.pl
Diffstat (limited to 'docs/examples/opensslthreadlock.c')
-rw-r--r-- | docs/examples/opensslthreadlock.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/docs/examples/opensslthreadlock.c b/docs/examples/opensslthreadlock.c index 100ae4681..eebc42ee2 100644 --- a/docs/examples/opensslthreadlock.c +++ b/docs/examples/opensslthreadlock.c @@ -39,7 +39,7 @@ #define MUTEX_CLEANUP(x) pthread_mutex_destroy(&(x)) #define MUTEX_LOCK(x) pthread_mutex_lock(&(x)) #define MUTEX_UNLOCK(x) pthread_mutex_unlock(&(x)) -#define THREAD_ID pthread_self( ) +#define THREAD_ID pthread_self() void handle_error(const char *file, int lineno, const char *msg) @@ -69,10 +69,10 @@ int thread_setup(void) { int i; - mutex_buf = malloc(CRYPTO_num_locks( ) * sizeof(MUTEX_TYPE)); + mutex_buf = malloc(CRYPTO_num_locks() * sizeof(MUTEX_TYPE)); if(!mutex_buf) return 0; - for(i = 0; i < CRYPTO_num_locks( ); i++) + for(i = 0; i < CRYPTO_num_locks(); i++) MUTEX_SETUP(mutex_buf[i]); CRYPTO_set_id_callback(id_function); CRYPTO_set_locking_callback(locking_function); @@ -87,7 +87,7 @@ int thread_cleanup(void) return 0; CRYPTO_set_id_callback(NULL); CRYPTO_set_locking_callback(NULL); - for(i = 0; i < CRYPTO_num_locks( ); i++) + for(i = 0; i < CRYPTO_num_locks(); i++) MUTEX_CLEANUP(mutex_buf[i]); free(mutex_buf); mutex_buf = NULL; |