File tree 2 files changed +5
-12
lines changed
2 files changed +5
-12
lines changed Original file line number Diff line number Diff line change 10
10
*
11
11
*
12
12
* IDENTIFICATION
13
- * $Header: /cvsroot/pgsql/src/backend/libpq/hba.c,v 1.115 2003/09 /25 06:57:59 petere Exp $
13
+ * $Header: /cvsroot/pgsql/src/backend/libpq/hba.c,v 1.116 2003/10 /25 03:48:46 momjian Exp $
14
14
*
15
15
*-------------------------------------------------------------------------
16
16
*/
@@ -1433,15 +1433,15 @@ ident_unix(int sock, char *ident_user)
1433
1433
struct msghdr msg ;
1434
1434
1435
1435
/* Credentials structure */
1436
- #ifdef HAVE_STRUCT_CMSGCRED
1436
+ #if defined( HAVE_STRUCT_CMSGCRED )
1437
1437
typedef struct cmsgcred Cred ;
1438
1438
1439
1439
#define cruid cmcred_uid
1440
- #elif HAVE_STRUCT_FCRED
1440
+ #elif defined( HAVE_STRUCT_FCRED )
1441
1441
typedef struct fcred Cred ;
1442
1442
1443
1443
#define cruid fc_uid
1444
- #elif HAVE_STRUCT_SOCKCRED
1444
+ #elif defined( HAVE_STRUCT_SOCKCRED )
1445
1445
typedef struct sockcred Cred ;
1446
1446
1447
1447
#define cruid sc_uid
Original file line number Diff line number Diff line change 10
10
* exceed INITIAL_EXPBUFFER_SIZE (currently 256 bytes).
11
11
*
12
12
* IDENTIFICATION
13
- * $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-auth.c,v 1.83 2003/08/04 02:40:16 momjian Exp $
13
+ * $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-auth.c,v 1.84 2003/10/25 03:48:47 momjian Exp $
14
14
*
15
15
*-------------------------------------------------------------------------
16
16
*/
@@ -464,13 +464,6 @@ pg_local_sendauth(char *PQerrormsg, PGconn *conn)
464
464
/* Point to start of first structure */
465
465
struct cmsghdr * cmsg = (struct cmsghdr * ) cmsgmem ;
466
466
#endif
467
- #ifdef HAVE_STRUCT_SOCKCRED
468
- /* Prevent padding */
469
- char cmsgmem [sizeof (struct cmsghdr ) + sizeof (struct sockcred )];
470
-
471
- /* Point to start of first structure */
472
- struct cmsghdr * cmsg = (struct cmsghdr * ) cmsgmem ;
473
- #endif
474
467
475
468
/*
476
469
* The backend doesn't care what we send here, but it wants exactly
You can’t perform that action at this time.
0 commit comments