Fix a problem that connection to syslogd fails.

* fhandler_socket_local.cc (get_inet_addr_local): Change type from
  'static int' to 'int' to be callable from syslog.cc.
* syslog.cc (connect_syslogd): Use get_inet_addr_local() instead of
  getsockname() to retrieve name information of the syslogd socket.
This commit is contained in:
Takashi Yano
2018-07-05 23:46:34 +09:00
committed by Corinna Vinschen
parent 138575c9b9
commit 8e782bbd94
2 changed files with 17 additions and 19 deletions

View File

@@ -68,7 +68,7 @@ adjust_socket_file_mode (mode_t mode)
}
/* cygwin internal: map sockaddr into internet domain address */
static int
int
get_inet_addr_local (const struct sockaddr *in, int inlen,
struct sockaddr_storage *out, int *outlen,
int *type = NULL, int *secret = NULL)