1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-12 09:18:10 +03:00

tsocket: more s/sun/un to make the build on solaris happy

metze
This commit is contained in:
Stefan Metzmacher 2009-03-28 23:48:45 +01:00
parent 12a8ed07b4
commit 23bb1eedf6

View File

@ -301,21 +301,21 @@ int _tsocket_address_unix_from_path(TALLOC_CTX *mem_ctx,
struct tsocket_address **_addr,
const char *location)
{
struct sockaddr_un sun;
void *p = &sun;
struct sockaddr_un un;
void *p = &un;
int ret;
if (!path) {
path = "";
}
ZERO_STRUCT(sun);
sun.sun_family = AF_UNIX;
strncpy(sun.sun_path, path, sizeof(sun.sun_path));
ZERO_STRUCT(un);
un.sun_family = AF_UNIX;
strncpy(un.sun_path, path, sizeof(un.sun_path));
ret = _tsocket_address_bsd_from_sockaddr(mem_ctx,
(struct sockaddr *)p,
sizeof(sun),
sizeof(un),
_addr,
location);