summaryrefslogtreecommitdiff
path: root/pullreqd.c
diff options
context:
space:
mode:
Diffstat (limited to 'pullreqd.c')
-rw-r--r--pullreqd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/pullreqd.c b/pullreqd.c
index d884d63..4e04f5b 100644
--- a/pullreqd.c
+++ b/pullreqd.c
@@ -140,11 +140,11 @@ int init_socket(config *cfg) {
}
/* Create a new listen socket. */
- int fd = socket(sock_addr.sa.sa_family, SOCK_SEQPACKET, 0);
+ const int fd = socket(sock_addr.sa.sa_family, SOCK_SEQPACKET, 0);
/* Did we fail to create the listen socket? */
if (fd < 0) {
- syslog(LOG_ERR, "Failed to create listen socket.");
+ syslog(LOG_ERR, "Failed to create listen socket. Reason: %s", strerror(errno));
return -1;
}