diff --git a/src/backend/replication/logical/logical.c b/src/backend/replication/logical/logical.c
index 156c4181eccbfc628dbb30df1549ced295ab97e7..2e72b2928f0f96ec84f75a02085a3ff102bb1d95 100644
--- a/src/backend/replication/logical/logical.c
+++ b/src/backend/replication/logical/logical.c
@@ -28,9 +28,6 @@
 
 #include "postgres.h"
 
-#include <unistd.h>
-#include <sys/stat.h>
-
 #include "miscadmin.h"
 
 #include "access/xact.h"
diff --git a/src/backend/replication/slot.c b/src/backend/replication/slot.c
index e0929cd00ba00839c5a275ace72c045fd4918515..122cac38540a8352c57ef30995c744c8c6fe5135 100644
--- a/src/backend/replication/slot.c
+++ b/src/backend/replication/slot.c
@@ -660,7 +660,7 @@ ReplicationSlotsComputeRequiredLSN(void)
 /*
  * Compute the oldest WAL LSN required by *logical* decoding slots..
  *
- * Returns InvalidXLogRecPtr if logical decoding is disabled or no logicals
+ * Returns InvalidXLogRecPtr if logical decoding is disabled or no logical
  * slots exist.
  *
  * NB: this returns a value >= ReplicationSlotsComputeRequiredLSN(), since it
@@ -875,7 +875,7 @@ StartupReplicationSlots(void)
 }
 
 /* ----
- * Manipulation of ondisk state of replication slots
+ * Manipulation of on-disk state of replication slots
  *
  * NB: none of the routines below should take any notice whether a slot is the
  * current one or not, that's all handled a layer above.