mirror of
https://github.com/postgres/postgres.git
synced 2025-07-30 11:03:19 +03:00
Add comment about pthread_self() cast.
This commit is contained in:
@ -11,7 +11,7 @@
|
|||||||
*
|
*
|
||||||
*
|
*
|
||||||
* IDENTIFICATION
|
* IDENTIFICATION
|
||||||
* $PostgreSQL: pgsql/src/interfaces/libpq/fe-secure.c,v 1.70 2005/08/23 21:02:03 momjian Exp $
|
* $PostgreSQL: pgsql/src/interfaces/libpq/fe-secure.c,v 1.71 2005/08/28 16:37:48 momjian Exp $
|
||||||
*
|
*
|
||||||
* NOTES
|
* NOTES
|
||||||
* [ Most of these notes are wrong/obsolete, but perhaps not all ]
|
* [ Most of these notes are wrong/obsolete, but perhaps not all ]
|
||||||
@ -880,6 +880,11 @@ client_cert_cb(SSL *ssl, X509 **x509, EVP_PKEY **pkey)
|
|||||||
static unsigned long
|
static unsigned long
|
||||||
pq_threadidcallback(void)
|
pq_threadidcallback(void)
|
||||||
{
|
{
|
||||||
|
/*
|
||||||
|
* This is not starndard-compliant. pthread_self() returns
|
||||||
|
* pthread_t, and shouldn't be cast to unsigned long, but
|
||||||
|
* CRYPTO_set_id_callback requires it, so we have to do it.
|
||||||
|
*/
|
||||||
return (unsigned long) pthread_self();
|
return (unsigned long) pthread_self();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user