Skip to content

Commit 1e91782

Browse files
committed
Fix compilation warning. (Cygwin has char* as second argument of
recvfrom(), not void*.)
1 parent 51be3ca commit 1e91782

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/backend/postmaster/pgstat.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
*
1717
* Copyright (c) 2001, PostgreSQL Global Development Group
1818
*
19-
* $Header: /cvsroot/pgsql/src/backend/postmaster/pgstat.c,v 1.27 2002/09/04 20:31:24 momjian Exp $
19+
* $Header: /cvsroot/pgsql/src/backend/postmaster/pgstat.c,v 1.28 2002/09/05 18:26:18 petere Exp $
2020
* ----------
2121
*/
2222
#include "postgres.h"
@@ -1575,7 +1575,7 @@ pgstat_recvbuffer(void)
15751575
{
15761576
fromlen = sizeof(fromaddr);
15771577
len = recvfrom(pgStatSock,
1578-
&input_buffer, sizeof(PgStat_Msg), 0,
1578+
(char *) &input_buffer, sizeof(PgStat_Msg), 0,
15791579
(struct sockaddr *) &fromaddr, &fromlen);
15801580
if (len < 0)
15811581
{

0 commit comments

Comments
 (0)