From ef915594659eb6e0ced39759c68637647cb50c95 Mon Sep 17 00:00:00 2001 From: Andre Date: Tue, 13 Jun 2006 03:14:33 +0200 Subject: [PATCH] fix documentation of get_host_info() --- net.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/net.c b/net.c index 74b8e1f7..6c4bbf98 100644 --- a/net.c +++ b/net.c @@ -224,8 +224,12 @@ int recv_buffer(int fd, char *buf, ssize_t size) /** * wrapper around gethostbyname * - * @param host hostname or IPv4 address - * \return The hostent structure or a NULL pointer if an error occurs + * \param host hostname or IPv4 address + * \param ret the hostent structure is returned here + * + * \return positive on success, negative on errors. On success, \a ret + * contains the return value of the underlying gethostbyname() call. + * * \sa gethostbyname(2) */ int get_host_info(char *host, struct hostent **ret) -- 2.39.5