mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
For #988, refine code.
This commit is contained in:
parent
823dc2df21
commit
922a8f3a5c
11 changed files with 104 additions and 122 deletions
|
@ -342,9 +342,9 @@ const char* inet_ntop(int af, const void *src, char *dst, socklen_t size)
|
|||
{
|
||||
switch (af) {
|
||||
case AF_INET:
|
||||
return (inet_ntop4( (unsigned char*)src, (char*)dst, size));
|
||||
return (inet_ntop4((unsigned char*)src, (char*)dst, size));
|
||||
case AF_INET6:
|
||||
return (char*)(inet_ntop6( (unsigned char*)src, (char*)dst, size));
|
||||
return (char*)(inet_ntop6((unsigned char*)src, (char*)dst, size));
|
||||
default:
|
||||
return (NULL);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue