Mercurial > hg > nginx
comparison src/core/ngx_inet.c @ 6474:2cd019520210
Style.
author | Ruslan Ermilov <ru@nginx.com> |
---|---|
date | Wed, 30 Mar 2016 11:52:16 +0300 |
parents | 5df5d7d771f6 |
children | 40bea39731d7 |
comparison
equal
deleted
inserted
replaced
6473:9d7326d3f474 | 6474:2cd019520210 |
---|---|
1240 #endif | 1240 #endif |
1241 | 1241 |
1242 #if (NGX_HAVE_UNIX_DOMAIN) | 1242 #if (NGX_HAVE_UNIX_DOMAIN) |
1243 case AF_UNIX: | 1243 case AF_UNIX: |
1244 | 1244 |
1245 /* TODO length */ | 1245 /* TODO length */ |
1246 | 1246 |
1247 saun1 = (struct sockaddr_un *) sa1; | 1247 saun1 = (struct sockaddr_un *) sa1; |
1248 saun2 = (struct sockaddr_un *) sa2; | 1248 saun2 = (struct sockaddr_un *) sa2; |
1249 | 1249 |
1250 if (ngx_memcmp(&saun1->sun_path, &saun2->sun_path, | 1250 if (ngx_memcmp(&saun1->sun_path, &saun2->sun_path, |
1251 sizeof(saun1->sun_path)) | 1251 sizeof(saun1->sun_path)) |
1252 != 0) | 1252 != 0) |
1253 { | 1253 { |
1254 return NGX_DECLINED; | 1254 return NGX_DECLINED; |
1255 } | 1255 } |
1256 | 1256 |
1257 break; | 1257 break; |
1258 #endif | 1258 #endif |
1259 | 1259 |
1260 default: /* AF_INET */ | 1260 default: /* AF_INET */ |
1261 | 1261 |
1262 sin1 = (struct sockaddr_in *) sa1; | 1262 sin1 = (struct sockaddr_in *) sa1; |