]> git.ipfire.org Git - thirdparty/postgresql.git/commitdiff
Remove unused HAVE_STRUCT_SOCKCRED code, which was causing a duplicate-
authorTom Lane <tgl@sss.pgh.pa.us>
Tue, 13 Dec 2005 03:36:14 +0000 (03:36 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Tue, 13 Dec 2005 03:36:14 +0000 (03:36 +0000)
variable-definition error on recent FreeBSDen (evidently, that platform
also HAS_STRUCT_CMSGCRED).  Backport of 7.4 fix dated 2003-10-25.

src/interfaces/libpq/fe-auth.c

index 5a6e492b644903f85bbd5d4082b8f3253aa48f39..b8a4069a71d28c74a2489cd90bdbecb341d2dc00 100644 (file)
@@ -10,7 +10,7 @@
  * exceed INITIAL_EXPBUFFER_SIZE (currently 256 bytes).
  *
  * IDENTIFICATION
- *       $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-auth.c,v 1.71 2002/09/04 20:31:46 momjian Exp $
+ *       $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-auth.c,v 1.71.2.1 2005/12/13 03:36:14 tgl Exp $
  *
  *-------------------------------------------------------------------------
  */
@@ -461,13 +461,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