Skip to content

Commit 9a2d948

Browse files
committed
Add header comments to receivelog.h and streamutil.h.
This commit also adds the include guards to those header files. Michael Paquier
1 parent e414ba9 commit 9a2d948

File tree

2 files changed

+32
-0
lines changed

2 files changed

+32
-0
lines changed

src/bin/pg_basebackup/receivelog.h

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,17 @@
1+
/*-------------------------------------------------------------------------
2+
*
3+
* receivelog.h
4+
*
5+
* Portions Copyright (c) 1996-2014, PostgreSQL Global Development Group
6+
*
7+
* IDENTIFICATION
8+
* src/bin/pg_basebackup/receivelog.h
9+
*-------------------------------------------------------------------------
10+
*/
11+
12+
#ifndef RECEIVELOG_H
13+
#define RECEIVELOG_H
14+
115
#include "libpq-fe.h"
216

317
#include "access/xlogdefs.h"
@@ -18,3 +32,5 @@ extern bool ReceiveXlogStream(PGconn *conn,
1832
int standby_message_timeout,
1933
char *partial_suffix,
2034
int fsync_interval);
35+
36+
#endif /* RECEIVELOG_H */

src/bin/pg_basebackup/streamutil.h

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,17 @@
1+
/*-------------------------------------------------------------------------
2+
*
3+
* streamutil.h
4+
*
5+
* Portions Copyright (c) 1996-2014, PostgreSQL Global Development Group
6+
*
7+
* IDENTIFICATION
8+
* src/bin/pg_basebackup/streamutil.h
9+
*-------------------------------------------------------------------------
10+
*/
11+
12+
#ifndef STREAMUTIL_H
13+
#define STREAMUTIL_H
14+
115
#include "libpq-fe.h"
216

317
extern const char *progname;
@@ -22,3 +36,5 @@ extern bool feTimestampDifferenceExceeds(int64 start_time, int64 stop_time,
2236
int msec);
2337
extern void fe_sendint64(int64 i, char *buf);
2438
extern int64 fe_recvint64(char *buf);
39+
40+
#endif /* STREAMUTIL_H */

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy