From e33ae22b87597f31caefd5466bb8e8f240405972 Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Tue, 15 Dec 2009 12:57:35 +0100 Subject: tsocket: Fixed documentation for tsocket_address_bsd_sockaddr(). --- lib/tsocket/tsocket_guide.txt | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'lib/tsocket') diff --git a/lib/tsocket/tsocket_guide.txt b/lib/tsocket/tsocket_guide.txt index 287fe8a4e5..b47f153e2e 100644 --- a/lib/tsocket/tsocket_guide.txt +++ b/lib/tsocket/tsocket_guide.txt @@ -433,12 +433,11 @@ int tsocket_address_bsd_from_sockaddr(TALLOC_CTX *mem_ctx, socklen_t sa_socklen, struct tsocket_address **addr); -In some situations it's needed to get a 'struct a tsocket_address from -a given 'struct sockaddr'. You can use tsocket_address_bsd_from_sockaddr() -for that. This should only be used if really needed, because of -already existing fixed APIs. Only AF_INET, AF_INET6 and AF_UNIX -sockets are allowed. The function returns -1 and set errno on error. -Otherwise it returns 0. +In some situations it's needed to get a 'struct sockaddr' from a +given tsocket_address . You can use tsocket_address_bsd_sockaddr() +for that. This should only be used if really needed. Only AF_INET, +AF_INET6 and AF_UNIX are supported. It returns the size of '*sa' on +success, otherwise it returns -1 and sets 'errno'. int tsocket_address_bsd_sockaddr(const struct tsocket_address *addr, struct sockaddr *sa, -- cgit