Commit a81b9d67 authored by Tom Lane's avatar Tom Lane

Fix random build breakage from log_disconnections patch.

parent 59f9a0b9
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
* *
* *
* IDENTIFICATION * IDENTIFICATION
* $PostgreSQL: pgsql/src/backend/tcop/postgres.c,v 1.392 2004/02/17 04:09:26 momjian Exp $ * $PostgreSQL: pgsql/src/backend/tcop/postgres.c,v 1.393 2004/02/21 06:29:58 tgl Exp $
* *
* NOTES * NOTES
* this is the "main" module of the postgres backend and * this is the "main" module of the postgres backend and
...@@ -3240,8 +3240,9 @@ log_disconnections(int code, Datum arg) ...@@ -3240,8 +3240,9 @@ log_disconnections(int code, Datum arg)
snprintf(session_time,sizeof(session_time),"negative!"); snprintf(session_time,sizeof(session_time),"negative!");
else else
/* for stricter accuracy here we could round - this is close enough */ /* for stricter accuracy here we could round - this is close enough */
snprintf(session_time, sizeof(session_time),"%d:%02d:%02d.%02ld", snprintf(session_time, sizeof(session_time),
hours, minutes, seconds, end.tv_usec/10000); "%d:%02d:%02d.%02d",
hours, minutes, seconds, (int) (end.tv_usec/10000));
ereport( ereport(
LOG, LOG,
......
...@@ -11,21 +11,22 @@ ...@@ -11,21 +11,22 @@
* Portions Copyright (c) 1996-2003, PostgreSQL Global Development Group * Portions Copyright (c) 1996-2003, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California * Portions Copyright (c) 1994, Regents of the University of California
* *
* $PostgreSQL: pgsql/src/include/libpq/libpq-be.h,v 1.40 2004/02/17 03:54:57 momjian Exp $ * $PostgreSQL: pgsql/src/include/libpq/libpq-be.h,v 1.41 2004/02/21 06:29:58 tgl Exp $
* *
*------------------------------------------------------------------------- *-------------------------------------------------------------------------
*/ */
#ifndef LIBPQ_BE_H #ifndef LIBPQ_BE_H
#define LIBPQ_BE_H #define LIBPQ_BE_H
#include "libpq/hba.h" #include <sys/time.h>
#include "libpq/pqcomm.h"
#ifdef USE_SSL #ifdef USE_SSL
#include <openssl/ssl.h> #include <openssl/ssl.h>
#include <openssl/err.h> #include <openssl/err.h>
#endif #endif
#include "libpq/hba.h"
#include "libpq/pqcomm.h"
typedef enum CAC_state typedef enum CAC_state
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment