Mercurial > emacs
comparison src/process.c @ 69973:dc4e5cc51e66
(conv_lisp_to_sockaddr): If FAMILY unknown, just return.
| author | Richard M. Stallman <rms@gnu.org> |
|---|---|
| date | Wed, 12 Apr 2006 15:00:32 +0000 |
| parents | 2d844bbbccd4 |
| children | 2ecef706d823 |
comparison
equal
deleted
inserted
replaced
| 69972:8de650354007 | 69973:dc4e5cc51e66 |
|---|---|
| 2320 } | 2320 } |
| 2321 return 0; | 2321 return 0; |
| 2322 } | 2322 } |
| 2323 | 2323 |
| 2324 /* Convert an address object (vector or string) to an internal sockaddr. | 2324 /* Convert an address object (vector or string) to an internal sockaddr. |
| 2325 Format of address has already been validated by size_lisp_to_sockaddr. */ | 2325 Address format has already been validated by get_lisp_to_sockaddr_size, |
| 2326 but just to be nice, we return without doing anything | |
| 2327 if FAMILY is not valid. */ | |
| 2326 | 2328 |
| 2327 static void | 2329 static void |
| 2328 conv_lisp_to_sockaddr (family, address, sa, len) | 2330 conv_lisp_to_sockaddr (family, address, sa, len) |
| 2329 int family; | 2331 int family; |
| 2330 Lisp_Object address; | 2332 Lisp_Object address; |
| 2364 ip6[i] = ntohs (j); | 2366 ip6[i] = ntohs (j); |
| 2365 } | 2367 } |
| 2366 return; | 2368 return; |
| 2367 } | 2369 } |
| 2368 #endif | 2370 #endif |
| 2371 return; | |
| 2369 } | 2372 } |
| 2370 else if (STRINGP (address)) | 2373 else if (STRINGP (address)) |
| 2371 { | 2374 { |
| 2372 #ifdef HAVE_LOCAL_SOCKETS | 2375 #ifdef HAVE_LOCAL_SOCKETS |
| 2373 if (family == AF_LOCAL) | 2376 if (family == AF_LOCAL) |
