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:
committed by
Corinna Vinschen
parent
138575c9b9
commit
8e782bbd94
@@ -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)
|
||||
|
Reference in New Issue
Block a user