]> git.ipfire.org Git - thirdparty/postgresql.git/commitdiff
Here's a minor fix that fixes a casting problem:
authorMarc G. Fournier <scrappy@hub.org>
Mon, 19 Aug 1996 13:40:26 +0000 (13:40 +0000)
committerMarc G. Fournier <scrappy@hub.org>
Mon, 19 Aug 1996 13:40:26 +0000 (13:40 +0000)
-Kurt

src/interfaces/libpq/fe-connect.c

index 5418b26b4e54a55bf86004de267f785d5a8b2ce9..d6455d940084c6b75d37bf2fc1bf6bf78e3e8024 100644 (file)
@@ -7,7 +7,7 @@
  *
  *
  * IDENTIFICATION
- *    $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-connect.c,v 1.4.2.1 1996/08/19 13:23:19 scrappy Exp $
+ *    $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-connect.c,v 1.4.2.2 1996/08/19 13:40:26 scrappy Exp $
  *
  *-------------------------------------------------------------------------
  */
@@ -239,7 +239,7 @@ connectDB(PGconn *conn)
 
 /*    pacBuf = startup2PacketBuf(&startup);*/
     startup2PacketBuf(&startup, &pacBuf);
-    pacBuf.msgtype = htonl(msgtype);
+    pacBuf.msgtype = (MsgType) htonl(msgtype);
     status = packetSend(port, &pacBuf, sizeof(PacketBuf), BLOCKING);
     
     if (status == STATUS_ERROR)