Commit 6db0a6b0 authored by Bruce Momjian's avatar Bruce Momjian

Remove socket credentials defines not referenced.

parent 1919b620
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
* *
* *
* IDENTIFICATION * 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) ...@@ -1433,15 +1433,15 @@ ident_unix(int sock, char *ident_user)
struct msghdr msg; struct msghdr msg;
/* Credentials structure */ /* Credentials structure */
#ifdef HAVE_STRUCT_CMSGCRED #if defined(HAVE_STRUCT_CMSGCRED)
typedef struct cmsgcred Cred; typedef struct cmsgcred Cred;
#define cruid cmcred_uid #define cruid cmcred_uid
#elif HAVE_STRUCT_FCRED #elif defined(HAVE_STRUCT_FCRED)
typedef struct fcred Cred; typedef struct fcred Cred;
#define cruid fc_uid #define cruid fc_uid
#elif HAVE_STRUCT_SOCKCRED #elif defined(HAVE_STRUCT_SOCKCRED)
typedef struct sockcred Cred; typedef struct sockcred Cred;
#define cruid sc_uid #define cruid sc_uid
......
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
* exceed INITIAL_EXPBUFFER_SIZE (currently 256 bytes). * exceed INITIAL_EXPBUFFER_SIZE (currently 256 bytes).
* *
* IDENTIFICATION * 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) ...@@ -464,13 +464,6 @@ pg_local_sendauth(char *PQerrormsg, PGconn *conn)
/* Point to start of first structure */ /* Point to start of first structure */
struct cmsghdr *cmsg = (struct cmsghdr *) cmsgmem; struct cmsghdr *cmsg = (struct cmsghdr *) cmsgmem;
#endif #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 * The backend doesn't care what we send here, but it wants exactly
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment