1
0
mirror of https://github.com/postgres/postgres.git synced 2025-06-27 23:21:58 +03:00

pgindent run over code.

This commit is contained in:
Bruce Momjian
1999-05-25 16:15:34 +00:00
parent 4b04b01aaa
commit 07842084fe
413 changed files with 11723 additions and 10769 deletions

View File

@ -132,10 +132,10 @@ tprintf(int flag, const char *fmt,...)
* Print a timestamp and a message to stdout or to syslog.
*/
int
tprintf1(const char *fmt, ... )
tprintf1(const char *fmt,...)
{
va_list ap;
char line[ELOG_MAXLEN+TIMESTAMP_SIZE+1];
char line[ELOG_MAXLEN + TIMESTAMP_SIZE + 1];
va_start(ap, fmt);
#ifdef ELOG_TIMESTAMPS
@ -145,10 +145,11 @@ tprintf1(const char *fmt, ... )
va_end(ap);
#ifdef USE_SYSLOG
write_syslog(LOG_INFO, line+TIMESTAMP_SIZE);
write_syslog(LOG_INFO, line + TIMESTAMP_SIZE);
#endif
if (UseSyslog <= 1) {
if (UseSyslog <= 1)
{
puts(line);
fflush(stdout);
}
@ -193,7 +194,7 @@ eprintf(const char *fmt,...)
void
write_syslog(int level, char *line)
{
static int openlog_done = 0;
static int openlog_done = 0;
if (UseSyslog >= 1)
{
@ -348,9 +349,10 @@ read_pg_options(SIGNAL_ARGS)
char *s,
*p;
if (!DataDir) {
fprintf(stderr, "read_pg_options: DataDir not defined\n");
return;
if (!DataDir)
{
fprintf(stderr, "read_pg_options: DataDir not defined\n");
return;
}
snprintf(buffer, BUF_SIZE - 1, "%s/%s", DataDir, "pg_options");