diff options
author | Fujii Masao | 2014-08-27 10:31:48 +0000 |
---|---|---|
committer | Fujii Masao | 2014-08-27 10:31:48 +0000 |
commit | 9a2d94892f6a793d52ebabb8283b98a6e3ede3d6 (patch) | |
tree | 07e54c8d1c606a21c8d1c9c77839340e55766320 | |
parent | e414ba93add966dfe03e22994764e718ed89ee98 (diff) |
Add header comments to receivelog.h and streamutil.h.
This commit also adds the include guards to those header files.
Michael Paquier
-rw-r--r-- | src/bin/pg_basebackup/receivelog.h | 16 | ||||
-rw-r--r-- | src/bin/pg_basebackup/streamutil.h | 16 |
2 files changed, 32 insertions, 0 deletions
diff --git a/src/bin/pg_basebackup/receivelog.h b/src/bin/pg_basebackup/receivelog.h index 72f8245373..36eb1e1281 100644 --- a/src/bin/pg_basebackup/receivelog.h +++ b/src/bin/pg_basebackup/receivelog.h @@ -1,3 +1,17 @@ +/*------------------------------------------------------------------------- + * + * receivelog.h + * + * Portions Copyright (c) 1996-2014, PostgreSQL Global Development Group + * + * IDENTIFICATION + * src/bin/pg_basebackup/receivelog.h + *------------------------------------------------------------------------- + */ + +#ifndef RECEIVELOG_H +#define RECEIVELOG_H + #include "libpq-fe.h" #include "access/xlogdefs.h" @@ -18,3 +32,5 @@ extern bool ReceiveXlogStream(PGconn *conn, int standby_message_timeout, char *partial_suffix, int fsync_interval); + +#endif /* RECEIVELOG_H */ diff --git a/src/bin/pg_basebackup/streamutil.h b/src/bin/pg_basebackup/streamutil.h index c36a37bf15..8c6691f9c8 100644 --- a/src/bin/pg_basebackup/streamutil.h +++ b/src/bin/pg_basebackup/streamutil.h @@ -1,3 +1,17 @@ +/*------------------------------------------------------------------------- + * + * streamutil.h + * + * Portions Copyright (c) 1996-2014, PostgreSQL Global Development Group + * + * IDENTIFICATION + * src/bin/pg_basebackup/streamutil.h + *------------------------------------------------------------------------- + */ + +#ifndef STREAMUTIL_H +#define STREAMUTIL_H + #include "libpq-fe.h" extern const char *progname; @@ -22,3 +36,5 @@ extern bool feTimestampDifferenceExceeds(int64 start_time, int64 stop_time, int msec); extern void fe_sendint64(int64 i, char *buf); extern int64 fe_recvint64(char *buf); + +#endif /* STREAMUTIL_H */ |