mirror of
https://github.com/postgres/postgres.git
synced 2025-11-04 20:11:56 +03:00
Compile and warning cleanup
This commit is contained in:
@@ -33,10 +33,10 @@ char *Sysfunc_system_date(void)
|
||||
time(&cur_time_secs);
|
||||
cur_time_expanded = localtime(&cur_time_secs);
|
||||
#if defined(EUROPEAN_DATES)
|
||||
sprintf(buf, "%02.2d-%02.2d-%04.4d", cur_time_expanded->tm_mday,
|
||||
sprintf(buf, "%2.2d-%2.2d-%4.4d", cur_time_expanded->tm_mday,
|
||||
cur_time_expanded->tm_mon+1, cur_time_expanded->tm_year+1900);
|
||||
#else
|
||||
sprintf(buf, "%02.2d-%02.2d-%04.4d", cur_time_expanded->tm_mon+1,
|
||||
sprintf(buf, "%2.2d-%2.2d-%4.4d", cur_time_expanded->tm_mon+1,
|
||||
cur_time_expanded->tm_mday, cur_time_expanded->tm_year+1900);
|
||||
#endif
|
||||
return &buf[0];
|
||||
|
||||
Reference in New Issue
Block a user