summaryrefslogtreecommitdiff
path: root/lib/tsocket
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2009-03-28 23:48:45 +0100
committerStefan Metzmacher <metze@samba.org>2009-03-28 23:50:56 +0100
commit23bb1eedf68f1325a4993def22689cf2c8283f8d (patch)
treef67d6520df3728af8e65263401230b00cedeb57c /lib/tsocket
parent12a8ed07b43ed8dc27db396a23cd8657e419101e (diff)
downloadsamba-23bb1eedf68f1325a4993def22689cf2c8283f8d.tar.gz
samba-23bb1eedf68f1325a4993def22689cf2c8283f8d.tar.bz2
samba-23bb1eedf68f1325a4993def22689cf2c8283f8d.zip
tsocket: more s/sun/un to make the build on solaris happy
metze
Diffstat (limited to 'lib/tsocket')
-rw-r--r--lib/tsocket/tsocket_bsd.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/tsocket/tsocket_bsd.c b/lib/tsocket/tsocket_bsd.c
index f673aa65e7..3d13dfd47d 100644
--- a/lib/tsocket/tsocket_bsd.c
+++ b/lib/tsocket/tsocket_bsd.c
@@ -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);