diff options
author | Bruce Momjian <bruce@momjian.us> | 2005-08-28 16:37:48 +0000 |
---|---|---|
committer | Bruce Momjian <bruce@momjian.us> | 2005-08-28 16:37:48 +0000 |
commit | 0c172b215a353a4e5e88097cb14c24acaa8d1130 (patch) | |
tree | 9423e3b2ffbda595d28c2dff0124f3c077930c4e /src | |
parent | 0845538f3aeeadbf32a04131222cb4bd447543f8 (diff) | |
download | postgresql-0c172b215a353a4e5e88097cb14c24acaa8d1130.tar.gz postgresql-0c172b215a353a4e5e88097cb14c24acaa8d1130.zip |
Add comment about pthread_self() cast.
Diffstat (limited to 'src')
-rw-r--r-- | src/interfaces/libpq/fe-secure.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/interfaces/libpq/fe-secure.c b/src/interfaces/libpq/fe-secure.c index c3cfe42ff32..4ef11616aeb 100644 --- a/src/interfaces/libpq/fe-secure.c +++ b/src/interfaces/libpq/fe-secure.c @@ -11,7 +11,7 @@ * * * 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 * [ 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 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(); } |