From ec934f6dabda45e8927236345d9c672a8a7dd59c Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Sat, 26 Feb 2011 10:57:13 +0100 Subject: [PATCH] libssh2_knownhost_readfile.3: clarify return value This function returns the number of parsed hosts on success, not just zero as previously documented. --- docs/libssh2_knownhost_readfile.3 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/libssh2_knownhost_readfile.3 b/docs/libssh2_knownhost_readfile.3 index e0a7d12..68aa940 100644 --- a/docs/libssh2_knownhost_readfile.3 +++ b/docs/libssh2_knownhost_readfile.3 @@ -1,5 +1,5 @@ .\" -.\" Copyright (c) 2009 by Daniel Stenberg +.\" Copyright (c) 2009-2011 by Daniel Stenberg .\" .TH libssh2_knownhost_readfile 3 "28 May 2009" "libssh2 1.2" "libssh2 manual" .SH NAME @@ -19,8 +19,8 @@ collection of known hosts. \fILIBSSH2_KNOWNHOST_FILE_OPENSSH\fP is the only currently supported format. This file is normally found named ~/.ssh/known_hosts .SH RETURN VALUE -Returns a regular libssh2 error code, where negative values are error codes -and 0 indicates success. +Returns a negative value, a regular libssh2 error code for errors, or a +positive number as number of parsed known hosts in the file. .SH AVAILABILITY Added in libssh2 1.2 .SH SEE ALSO