mirror of
https://github.com/protobuf-c/protobuf-c.git
synced 2024-12-27 22:01:02 +08:00
protobuf-c-rpc/protobuf-c-rpc.c: rename AF_LOCAL to AF_UNIX (Fixes #100)
This commit is contained in:
parent
e9529ac463
commit
4610a0d40e
@ -1351,7 +1351,7 @@ protobuf_c_rpc_server_new (ProtobufC_RPC_AddressType type,
|
||||
case PROTOBUF_C_RPC_ADDRESS_LOCAL:
|
||||
protocol_family = PF_UNIX;
|
||||
memset (&addr_un, 0, sizeof (addr_un));
|
||||
addr_un.sun_family = AF_LOCAL;
|
||||
addr_un.sun_family = AF_UNIX;
|
||||
strncpy (addr_un.sun_path, name, sizeof (addr_un.sun_path));
|
||||
address_len = sizeof (addr_un);
|
||||
address = (struct sockaddr *) (&addr_un);
|
||||
|
Loading…
x
Reference in New Issue
Block a user