summaryrefslogtreecommitdiff
path: root/source/lib/util_sock.c
diff options
context:
space:
mode:
authorZach Loafman <zachary.loafman@isilon.com>2008-07-07 19:30:47 -0700
committerKarolin Seeger <kseeger@samba.org>2008-07-10 08:36:53 +0200
commit1d763ad7bb3b30a8babee13cad34287389a7a086 (patch)
tree2f8a799d84a15d794ff08d9b0a98beda9bd3f3a3 /source/lib/util_sock.c
parent63aa72058a2efd417a84fac416fe85932b38360d (diff)
downloadsamba-1d763ad7bb3b30a8babee13cad34287389a7a086.tar.gz
Minor style correction
Set sin[6]_family instead of ss_family in in[6]_addr_to_sockaddr_storage so that assignments look like they're going to the same place. (cherry picked from commit 01d1dddebff7ec9502422667b12f0bac8fa6a780)
Diffstat (limited to 'source/lib/util_sock.c')
-rw-r--r--source/lib/util_sock.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/lib/util_sock.c b/source/lib/util_sock.c
index b2a1ece5db7..822ff263315 100644
--- a/source/lib/util_sock.c
+++ b/source/lib/util_sock.c
@@ -365,7 +365,7 @@ void in_addr_to_sockaddr_storage(struct sockaddr_storage *ss,
{
struct sockaddr_in *sa = (struct sockaddr_in *)ss;
memset(ss, '\0', sizeof(*ss));
- ss->ss_family = AF_INET;
+ sa->sin_family = AF_INET;
sa->sin_addr = ip;
}
@@ -379,7 +379,7 @@ void in_addr_to_sockaddr_storage(struct sockaddr_storage *ss,
{
struct sockaddr_in6 *sa = (struct sockaddr_in6 *)ss;
memset(ss, '\0', sizeof(*ss));
- ss->ss_family = AF_INET6;
+ sa->sin6_family = AF_INET6;
sa->sin6_addr = ip;
}
#endif