diff options
author | Zach Loafman <zachary.loafman@isilon.com> | 2008-07-07 19:30:47 -0700 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2008-07-08 15:58:19 -0700 |
commit | 272690bda864d04e9e95e103393fb51d1affc334 (patch) | |
tree | 0e946164021a9a5da7c5ffb58aa96436d9915cdb /source3 | |
parent | 733cf7602670d6762dd9aa85d3332f6e10ee78cd (diff) | |
download | samba-272690bda864d04e9e95e103393fb51d1affc334.tar.gz samba-272690bda864d04e9e95e103393fb51d1affc334.tar.xz samba-272690bda864d04e9e95e103393fb51d1affc334.zip |
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.
(This used to be commit 3d19112f645fb0f4bb6b644207ed2cee0b6b3ea9)
Diffstat (limited to 'source3')
-rw-r--r-- | source3/lib/util_sock.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/lib/util_sock.c b/source3/lib/util_sock.c index b2a1ece5db..822ff26331 100644 --- a/source3/lib/util_sock.c +++ b/source3/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 |