|
8 | 8 | *
|
9 | 9 | *
|
10 | 10 | * IDENTIFICATION
|
11 |
| - * $Header: /cvsroot/pgsql/src/backend/storage/lmgr/proc.c,v 1.133 2003/08/04 02:40:03 momjian Exp $ |
| 11 | + * $Header: /cvsroot/pgsql/src/backend/storage/lmgr/proc.c,v 1.134 2003/10/11 16:30:55 momjian Exp $ |
12 | 12 | *
|
13 | 13 | *-------------------------------------------------------------------------
|
14 | 14 | */
|
@@ -1013,7 +1013,7 @@ enable_sig_alarm(int delayms, bool is_statement_timeout)
|
1013 | 1013 |
|
1014 | 1014 | /* If we reach here, okay to set the timer interrupt */
|
1015 | 1015 | #ifndef __BEOS__
|
1016 |
| - MemSet(&timeval, 0, sizeof(struct itimerval)); |
| 1016 | + MemSet((void *)&timeval, 0, sizeof(struct itimerval)); |
1017 | 1017 | timeval.it_value.tv_sec = delayms / 1000;
|
1018 | 1018 | timeval.it_value.tv_usec = (delayms % 1000) * 1000;
|
1019 | 1019 | if (setitimer(ITIMER_REAL, &timeval, NULL))
|
@@ -1054,7 +1054,7 @@ disable_sig_alarm(bool is_statement_timeout)
|
1054 | 1054 | #ifndef __BEOS__
|
1055 | 1055 | struct itimerval timeval;
|
1056 | 1056 |
|
1057 |
| - MemSet(&timeval, 0, sizeof(struct itimerval)); |
| 1057 | + MemSet((void *)&timeval, 0, sizeof(struct itimerval)); |
1058 | 1058 | if (setitimer(ITIMER_REAL, &timeval, NULL))
|
1059 | 1059 | {
|
1060 | 1060 | statement_timeout_active = deadlock_timeout_active = false;
|
@@ -1120,7 +1120,7 @@ CheckStatementTimeout(void)
|
1120 | 1120 | #ifndef __BEOS__
|
1121 | 1121 | struct itimerval timeval;
|
1122 | 1122 |
|
1123 |
| - MemSet(&timeval, 0, sizeof(struct itimerval)); |
| 1123 | + MemSet((void *)&timeval, 0, sizeof(struct itimerval)); |
1124 | 1124 | timeval.it_value.tv_sec = statement_fin_time.tv_sec - now.tv_sec;
|
1125 | 1125 | timeval.it_value.tv_usec = statement_fin_time.tv_usec - now.tv_usec;
|
1126 | 1126 | if (timeval.it_value.tv_usec < 0)
|
|
0 commit comments