Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 3331180

Browse files
committed
shmdt takes a void* parameter, per Kris Jurka.
1 parent 00b821a commit 3331180

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/backend/port/sysv_shmem.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
* Portions Copyright (c) 1994, Regents of the University of California
1111
*
1212
* IDENTIFICATION
13-
* $PostgreSQL: pgsql/src/backend/port/sysv_shmem.c,v 1.37 2004/09/10 14:24:25 momjian Exp $
13+
* $PostgreSQL: pgsql/src/backend/port/sysv_shmem.c,v 1.38 2004/09/24 05:27:35 tgl Exp $
1414
*
1515
*-------------------------------------------------------------------------
1616
*/
@@ -412,7 +412,7 @@ PGSharedMemoryAttach(IpcMemoryKey key, IpcMemoryId *shmid)
412412

413413
if (hdr->magic != PGShmemMagic)
414414
{
415-
shmdt(hdr);
415+
shmdt((void *) hdr);
416416
return NULL; /* segment belongs to a non-Postgres app */
417417
}
418418

0 commit comments

Comments
 (0)