diff options
Diffstat (limited to 'src/backend/storage/lmgr/proc.c')
-rw-r--r-- | src/backend/storage/lmgr/proc.c | 8 |
1 files changed, 4 insertions, 4 deletions
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) |