diff options
Diffstat (limited to 'pullreqd.c')
-rw-r--r-- | pullreqd.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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; } |