mirror of
https://github.com/samba-team/samba.git
synced 2024-12-25 23:21:54 +03:00
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 commit is contained in:
parent
73312e4e21
commit
3d19112f64
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user