Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit0c172b2

Browse files
committed
Add comment about pthread_self() cast.
1 parent0845538 commit0c172b2

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

‎src/interfaces/libpq/fe-secure.c

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
*
1212
*
1313
* IDENTIFICATION
14-
* $PostgreSQL: pgsql/src/interfaces/libpq/fe-secure.c,v 1.70 2005/08/23 21:02:03 momjian Exp $
14+
* $PostgreSQL: pgsql/src/interfaces/libpq/fe-secure.c,v 1.71 2005/08/28 16:37:48 momjian Exp $
1515
*
1616
* NOTES
1717
* [ 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)
880880
staticunsigned long
881881
pq_threadidcallback(void)
882882
{
883+
/*
884+
*This is not starndard-compliant. pthread_self() returns
885+
*pthread_t, and shouldn't be cast to unsigned long, but
886+
*CRYPTO_set_id_callback requires it, so we have to do it.
887+
*/
883888
return (unsigned long)pthread_self();
884889
}
885890

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp