forked from Minki/linux
libceph: add missing breaks in addr_set_port
Signed-off-by: Sage Weil <sage@newdream.net>
This commit is contained in:
parent
0417788226
commit
a2a79609c0
@ -1073,8 +1073,10 @@ static void addr_set_port(struct sockaddr_storage *ss, int p)
|
||||
switch (ss->ss_family) {
|
||||
case AF_INET:
|
||||
((struct sockaddr_in *)ss)->sin_port = htons(p);
|
||||
break;
|
||||
case AF_INET6:
|
||||
((struct sockaddr_in6 *)ss)->sin6_port = htons(p);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user