Skip to content

Commit 20891d5

Browse files
committed
Remove unused system header includes
None of these headers were necessary to include, some because they are already included by postgres.h and others because we have removed the functions which we used to use from them.
1 parent 6007180 commit 20891d5

File tree

6 files changed

+0
-16
lines changed

6 files changed

+0
-16
lines changed

contrib/pg_tde/src/access/pg_tde_tdemap.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
#include <openssl/err.h>
44
#include <openssl/rand.h>
5-
#include <unistd.h>
65

76
#include "access/xlog.h"
87
#include "access/xlog_internal.h"

contrib/pg_tde/src/catalog/tde_keyring.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,6 @@
1212

1313
#include "postgres.h"
1414

15-
#include <unistd.h>
16-
1715
#include "access/skey.h"
1816
#include "access/xlog.h"
1917
#include "access/xloginsert.h"

contrib/pg_tde/src/encryption/enc_aes.c

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,7 @@
11
#include "postgres.h"
22

3-
#include <errno.h>
4-
#include <fcntl.h>
5-
#include <openssl/crypto.h>
63
#include <openssl/err.h>
74
#include <openssl/evp.h>
8-
#include <openssl/ssl.h>
9-
#include <stdio.h>
10-
#include <stdlib.h>
11-
#include <string.h>
12-
#include <unistd.h>
135

146
#include "encryption/enc_aes.h"
157

contrib/pg_tde/src/keyring/keyring_api.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
#include "postgres.h"
22

3-
#include <assert.h>
43
#include <openssl/err.h>
54
#include <openssl/rand.h>
65

contrib/pg_tde/src/keyring/keyring_file.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,6 @@
1212

1313
#include "postgres.h"
1414

15-
#include <stdio.h>
16-
#include <unistd.h>
17-
1815
#include "common/file_perm.h"
1916
#include "storage/fd.h"
2017
#include "utils/wait_event.h"

contrib/pg_tde/src/keyring/keyring_vault.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
#include "postgres.h"
1313

1414
#include <curl/curl.h>
15-
#include <stdio.h>
1615

1716
#include "common/base64.h"
1817
#include "common/jsonapi.h"

0 commit comments

Comments
 (0)