1
0
mirror of https://github.com/postgres/postgres.git synced 2025-06-29 10:41:53 +03:00

Cosmetic improvements to the timezone code: remove the use of the

'register' qualifier, make some function declarations more consistent,
and so on.
This commit is contained in:
Neil Conway
2005-06-20 08:00:51 +00:00
parent ec490f5159
commit 0b62bbe086
6 changed files with 200 additions and 201 deletions

View File

@ -15,7 +15,7 @@
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
*
* IDENTIFICATION
* $PostgreSQL: pgsql/src/timezone/strftime.c,v 1.6 2005/04/19 03:13:59 momjian Exp $
* $PostgreSQL: pgsql/src/timezone/strftime.c,v 1.7 2005/06/20 08:00:51 neilc Exp $
*/
#include "postgres.h"
@ -102,7 +102,7 @@ static char *_fmt(const char *, const struct pg_tm *, char *,
size_t
pg_strftime(char *s, size_t maxsize, const char *format,
const struct pg_tm * t)
const struct pg_tm *t)
{
char *p;
int warn;
@ -116,7 +116,7 @@ pg_strftime(char *s, size_t maxsize, const char *format,
}
static char *
_fmt(const char *format, const struct pg_tm * t, char *pt, const char *ptlim,
_fmt(const char *format, const struct pg_tm *t, char *pt, const char *ptlim,
int *warnp)
{
for (; *format; ++format)
@ -467,7 +467,7 @@ _fmt(const char *format, const struct pg_tm * t, char *pt, const char *ptlim,
}
static char *
_conv(const int n, const char *format, char *pt, const char *ptlim)
_conv(int n, const char *format, char *pt, const char *ptlim)
{
char buf[INT_STRLEN_MAXIMUM(int) +1];