From 4610a0d40e123badb15dd1ac925cdc81137765d9 Mon Sep 17 00:00:00 2001 From: Ilya Lipnitskiy Date: Mon, 18 Nov 2013 22:03:42 -0800 Subject: [PATCH] protobuf-c-rpc/protobuf-c-rpc.c: rename AF_LOCAL to AF_UNIX (Fixes #100) --- protobuf-c-rpc/protobuf-c-rpc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/protobuf-c-rpc/protobuf-c-rpc.c b/protobuf-c-rpc/protobuf-c-rpc.c index c56f75b..09b40cc 100644 --- a/protobuf-c-rpc/protobuf-c-rpc.c +++ b/protobuf-c-rpc/protobuf-c-rpc.c @@ -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);