mirror of
https://git.postgresql.org/git/postgresql.git
synced 2025-01-12 18:34:36 +08:00
Remove socket credentials defines not referenced.
This commit is contained in:
parent
1919b62058
commit
6db0a6b035
@ -10,7 +10,7 @@
|
||||
*
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $Header: /cvsroot/pgsql/src/backend/libpq/hba.c,v 1.115 2003/09/25 06:57:59 petere Exp $
|
||||
* $Header: /cvsroot/pgsql/src/backend/libpq/hba.c,v 1.116 2003/10/25 03:48:46 momjian Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@ -1433,15 +1433,15 @@ ident_unix(int sock, char *ident_user)
|
||||
struct msghdr msg;
|
||||
|
||||
/* Credentials structure */
|
||||
#ifdef HAVE_STRUCT_CMSGCRED
|
||||
#if defined(HAVE_STRUCT_CMSGCRED)
|
||||
typedef struct cmsgcred Cred;
|
||||
|
||||
#define cruid cmcred_uid
|
||||
#elif HAVE_STRUCT_FCRED
|
||||
#elif defined(HAVE_STRUCT_FCRED)
|
||||
typedef struct fcred Cred;
|
||||
|
||||
#define cruid fc_uid
|
||||
#elif HAVE_STRUCT_SOCKCRED
|
||||
#elif defined(HAVE_STRUCT_SOCKCRED)
|
||||
typedef struct sockcred Cred;
|
||||
|
||||
#define cruid sc_uid
|
||||
|
@ -10,7 +10,7 @@
|
||||
* exceed INITIAL_EXPBUFFER_SIZE (currently 256 bytes).
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-auth.c,v 1.83 2003/08/04 02:40:16 momjian Exp $
|
||||
* $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-auth.c,v 1.84 2003/10/25 03:48:47 momjian Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@ -464,13 +464,6 @@ pg_local_sendauth(char *PQerrormsg, PGconn *conn)
|
||||
/* Point to start of first structure */
|
||||
struct cmsghdr *cmsg = (struct cmsghdr *) cmsgmem;
|
||||
#endif
|
||||
#ifdef HAVE_STRUCT_SOCKCRED
|
||||
/* Prevent padding */
|
||||
char cmsgmem[sizeof(struct cmsghdr) + sizeof(struct sockcred)];
|
||||
|
||||
/* Point to start of first structure */
|
||||
struct cmsghdr *cmsg = (struct cmsghdr *) cmsgmem;
|
||||
#endif
|
||||
|
||||
/*
|
||||
* The backend doesn't care what we send here, but it wants exactly
|
||||
|
Loading…
Reference in New Issue
Block a user