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

Commit8c55728

Browse files
committed
Add CRED alignment for NetBSD.
1 parenta7621c9 commit8c55728

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎src/backend/libpq/hba.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
*
1111
*
1212
* IDENTIFICATION
13-
* $Header: /cvsroot/pgsql/src/backend/libpq/hba.c,v 1.70 2001/09/07 19:52:54 momjian Exp $
13+
* $Header: /cvsroot/pgsql/src/backend/libpq/hba.c,v 1.71 2001/09/07 19:59:04 momjian Exp $
1414
*
1515
*-------------------------------------------------------------------------
1616
*/
@@ -923,7 +923,7 @@ ident_unix(int sock, char *ident_user)
923923
Cred*cred;
924924

925925
/* Compute size without padding */
926-
charcmsgmem[sizeof(structcmsghdr)+sizeof(Cred)];
926+
charcmsgmem[sizeof(structcmsghdr)+ALIGN(sizeof(Cred))];/*for NetBSD*/
927927
/* Point to start of first structure */
928928
structcmsghdr*cmsg= (structcmsghdr*)cmsgmem;
929929

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp