Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit8fdd794

Browse files
committed
Portability fix from Ryan Kirkpatrick's Alpha patches. I believe this
is the only diff not accounted for by fmgr rewrite...
1 parent228c1e7 commit8fdd794

File tree

1 file changed

+6
-10
lines changed

1 file changed

+6
-10
lines changed

‎src/backend/utils/adt/nabstime.c

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/*
1+
/*-------------------------------------------------------------------------
22
* nabstime.c
33
* Utilities for the built-in type "AbsoluteTime".
44
* Functions for the built-in type "RelativeTime".
@@ -9,7 +9,7 @@
99
*
1010
*
1111
* IDENTIFICATION
12-
* $Header: /cvsroot/pgsql/src/backend/utils/adt/nabstime.c,v 1.76 2000/12/03 20:45:36 tgl Exp $
12+
* $Header: /cvsroot/pgsql/src/backend/utils/adt/nabstime.c,v 1.77 2000/12/09 20:40:57 tgl Exp $
1313
*
1414
* NOTES
1515
*
@@ -33,12 +33,6 @@
3333
#include"utils/builtins.h"
3434

3535

36-
#if0
37-
staticAbsoluteTimetm2abstime(structtm*tm,inttz);
38-
39-
#endif
40-
41-
4236
#defineMIN_DAYNUM -24856/* December 13, 1901 */
4337
#defineMAX_DAYNUM 24854/* January 18, 2038 */
4438

@@ -103,6 +97,7 @@ static intsec_tab[] = {
10397
* Function prototypes -- internal to this file only
10498
*/
10599

100+
staticAbsoluteTimetm2abstime(structtm*tm,inttz);
106101
staticvoidreltime2tm(RelativeTimetime,structtm*tm);
107102

108103
#ifdefNOT_USED
@@ -115,6 +110,7 @@ static int istinterval(char *i_string,
115110
AbsoluteTime*i_start,
116111
AbsoluteTime*i_end);
117112

113+
118114
/* GetCurrentAbsoluteTime()
119115
* Get the current system time. Set timezone parameters if not specified elsewhere.
120116
* Define HasTZSet to allow clients to specify the default timezone.
@@ -291,8 +287,8 @@ abstime2tm(AbsoluteTime _time, int *tzp, struct tm * tm, char *tzn)
291287
staticAbsoluteTime
292288
tm2abstime(structtm*tm,inttz)
293289
{
294-
intday,
295-
sec;
290+
intday;
291+
AbsoluteTimesec;
296292

297293
/* validate, before going out of range on some members */
298294
if (tm->tm_year<1901||tm->tm_year>2038

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp