aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBruce Momjian <bruce@momjian.us>2003-10-11 18:04:26 +0000
committerBruce Momjian <bruce@momjian.us>2003-10-11 18:04:26 +0000
commit7fb9893f42138b609521cd88c58bb9e9d1e04a31 (patch)
treed9e84a31d9ea30d1863c387a0e615d4a8acc3e17 /src
parent47ed43440e1bab11a10d2772d29da7c1c792541d (diff)
downloadpostgresql-7fb9893f42138b609521cd88c58bb9e9d1e04a31.tar.gz
postgresql-7fb9893f42138b609521cd88c58bb9e9d1e04a31.zip
Back out -fstrict-aliasing void* casting.
Diffstat (limited to 'src')
-rw-r--r--src/backend/commands/tablecmds.c4
-rw-r--r--src/backend/executor/execQual.c6
-rw-r--r--src/backend/port/sysv_shmem.c4
-rw-r--r--src/backend/storage/lmgr/proc.c8
-rw-r--r--src/bin/psql/command.c4
5 files changed, 13 insertions, 13 deletions
diff --git a/src/backend/commands/tablecmds.c b/src/backend/commands/tablecmds.c
index d5c7ac27f29..137dde37dda 100644
--- a/src/backend/commands/tablecmds.c
+++ b/src/backend/commands/tablecmds.c
@@ -8,7 +8,7 @@
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/commands/tablecmds.c,v 1.87 2003/10/11 16:30:54 momjian Exp $
+ * $Header: /cvsroot/pgsql/src/backend/commands/tablecmds.c,v 1.88 2003/10/11 18:04:25 momjian Exp $
*
*-------------------------------------------------------------------------
*/
@@ -3525,7 +3525,7 @@ validateForeignKeyConstraint(FkConstraint *fkconstraint,
trigdata.tg_newtuple = NULL;
trigdata.tg_trigger = &trig;
- fcinfo.context = (void *) &trigdata;
+ fcinfo.context = (Node *) &trigdata;
RI_FKey_check_ins(&fcinfo);
}
diff --git a/src/backend/executor/execQual.c b/src/backend/executor/execQual.c
index 8a963f88cb6..e490e4dd86f 100644
--- a/src/backend/executor/execQual.c
+++ b/src/backend/executor/execQual.c
@@ -8,7 +8,7 @@
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/executor/execQual.c,v 1.147 2003/10/11 16:30:54 momjian Exp $
+ * $Header: /cvsroot/pgsql/src/backend/executor/execQual.c,v 1.148 2003/10/11 18:04:25 momjian Exp $
*
*-------------------------------------------------------------------------
*/
@@ -746,7 +746,7 @@ ExecMakeFunctionResult(FuncExprState *fcache,
*/
if (fcache->func.fn_retset)
{
- fcinfo.resultinfo = (void *) &rsinfo;
+ fcinfo.resultinfo = (Node *) &rsinfo;
rsinfo.type = T_ReturnSetInfo;
rsinfo.econtext = econtext;
rsinfo.expectedDesc = NULL;
@@ -992,7 +992,7 @@ ExecMakeTableFunctionResult(ExprState *funcexpr,
* doesn't actually get to see the resultinfo, but set it up anyway
* because we use some of the fields as our own state variables.
*/
- fcinfo.resultinfo = (void *) &rsinfo;
+ fcinfo.resultinfo = (Node *) &rsinfo;
rsinfo.type = T_ReturnSetInfo;
rsinfo.econtext = econtext;
rsinfo.expectedDesc = expectedDesc;
diff --git a/src/backend/port/sysv_shmem.c b/src/backend/port/sysv_shmem.c
index c7fff5bb7bc..e6a873e83f4 100644
--- a/src/backend/port/sysv_shmem.c
+++ b/src/backend/port/sysv_shmem.c
@@ -10,7 +10,7 @@
* Portions Copyright (c) 1994, Regents of the University of California
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/port/sysv_shmem.c,v 1.18 2003/10/11 16:30:55 momjian Exp $
+ * $Header: /cvsroot/pgsql/src/backend/port/sysv_shmem.c,v 1.19 2003/10/11 18:04:25 momjian Exp $
*
*-------------------------------------------------------------------------
*/
@@ -365,7 +365,7 @@ PGSharedMemoryAttach(IpcMemoryKey key, IpcMemoryId *shmid)
if (hdr->magic != PGShmemMagic)
{
- shmdt((void *) hdr);
+ shmdt(hdr);
return NULL; /* segment belongs to a non-Postgres app */
}
diff --git a/src/backend/storage/lmgr/proc.c b/src/backend/storage/lmgr/proc.c
index 5c0eb76935f..32b08d6c6c1 100644
--- a/src/backend/storage/lmgr/proc.c
+++ b/src/backend/storage/lmgr/proc.c
@@ -8,7 +8,7 @@
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/storage/lmgr/proc.c,v 1.134 2003/10/11 16:30:55 momjian Exp $
+ * $Header: /cvsroot/pgsql/src/backend/storage/lmgr/proc.c,v 1.135 2003/10/11 18:04:25 momjian Exp $
*
*-------------------------------------------------------------------------
*/
@@ -1013,7 +1013,7 @@ enable_sig_alarm(int delayms, bool is_statement_timeout)
/* If we reach here, okay to set the timer interrupt */
#ifndef __BEOS__
- MemSet((void *)&timeval, 0, sizeof(struct itimerval));
+ MemSet(&timeval, 0, sizeof(struct itimerval));
timeval.it_value.tv_sec = delayms / 1000;
timeval.it_value.tv_usec = (delayms % 1000) * 1000;
if (setitimer(ITIMER_REAL, &timeval, NULL))
@@ -1054,7 +1054,7 @@ disable_sig_alarm(bool is_statement_timeout)
#ifndef __BEOS__
struct itimerval timeval;
- MemSet((void *)&timeval, 0, sizeof(struct itimerval));
+ MemSet(&timeval, 0, sizeof(struct itimerval));
if (setitimer(ITIMER_REAL, &timeval, NULL))
{
statement_timeout_active = deadlock_timeout_active = false;
@@ -1120,7 +1120,7 @@ CheckStatementTimeout(void)
#ifndef __BEOS__
struct itimerval timeval;
- MemSet((void *)&timeval, 0, sizeof(struct itimerval));
+ MemSet(&timeval, 0, sizeof(struct itimerval));
timeval.it_value.tv_sec = statement_fin_time.tv_sec - now.tv_sec;
timeval.it_value.tv_usec = statement_fin_time.tv_usec - now.tv_usec;
if (timeval.it_value.tv_usec < 0)
diff --git a/src/bin/psql/command.c b/src/bin/psql/command.c
index 87ae1dc7c65..45a40e19e35 100644
--- a/src/bin/psql/command.c
+++ b/src/bin/psql/command.c
@@ -3,7 +3,7 @@
*
* Copyright (c) 2000-2003, PostgreSQL Global Development Group
*
- * $Header: /cvsroot/pgsql/src/bin/psql/command.c,v 1.104 2003/10/11 16:30:55 momjian Exp $
+ * $Header: /cvsroot/pgsql/src/bin/psql/command.c,v 1.105 2003/10/11 18:04:26 momjian Exp $
*/
#include "postgres_fe.h"
#include "command.h"
@@ -1280,7 +1280,7 @@ unescape(const unsigned char *source, size_t len)
case '7':
case '8':
case '9':
- c = parse_char((void *) &p);
+ c = parse_char((char **) &p);
break;
default: