typo
[openssl.git] / doc / crypto / threads.pod
index 651694bd9ff45753f186ae0e22f01ccbb16ce3ef..5da056f3f82366182888269b41727088441c24fb 100644 (file)
@@ -20,12 +20,12 @@ CRYPTO_set_locking_callback, CRYPTO_set_id_callback - OpenSSL thread support
 OpenSSL can safely be used in multi-threaded applications provided
 that two callback functions are set.
 
-locking_function(int mode, int type, const char *file, int line) is
+locking_function(int mode, int n, const char *file, int line) is
 needed to perform locking on shared data stuctures. Multi-threaded
 applications will crash at random if it is not set.
 
 locking_function() must be able to handle up to CRYPTO_num_locks()
-different mutex locks. It sets the B<n>th lock if B<mode> &
+different mutex locks. It sets the B<n>-th lock if B<mode> &
 B<CRYPTO_LOCK>, and releases it otherwise.
 
 B<file> and B<line> are the file number of the function setting the
@@ -33,7 +33,7 @@ lock. They can be useful for debugging.
 
 id_function(void) is a function that returns a thread ID. It is not
 needed on Windows nor on platforms where getpid() returns a different
-ID for each thread.
+ID for each thread (most notably Linux).
 
 =head1 RETURN VALUES