diff options
author | Andreas Schneider <mail@cynapses.org> | 2009-05-05 07:15:06 +0000 |
---|---|---|
committer | Andreas Schneider <mail@cynapses.org> | 2009-05-05 07:15:06 +0000 |
commit | 4c7879396140d7983b73da037a219c106ae47d86 (patch) | |
tree | bfeb4e0a208bad274c11d3919f7f0e9d572b527a /libssh | |
parent | 5c934d09700a9b440e95333d7bb5eb1a3a8847f4 (diff) | |
download | libssh-4c7879396140d7983b73da037a219c106ae47d86.tar.gz libssh-4c7879396140d7983b73da037a219c106ae47d86.tar.xz libssh-4c7879396140d7983b73da037a219c106ae47d86.zip |
Format match_hostname().
git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@716 7dcaeef0-15fb-0310-b436-a5af3365683c
Diffstat (limited to 'libssh')
-rw-r--r-- | libssh/match.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/libssh/match.c b/libssh/match.c index e48a5c8e..b30c2f71 100644 --- a/libssh/match.c +++ b/libssh/match.c @@ -178,9 +178,11 @@ static int match_pattern_list(const char *string, const char *pattern, /* * Tries to match the host name (which must be in all lowercase) against the * comma-separated sequence of subpatterns (each possibly preceded by ! to - * indicate negation). Returns -1 if negation matches, 1 if there is - * a positive match, 0 if there is no match at all. + * indicate negation). + * Returns -1 if negation matches, 1 if there is a positive match, 0 if there + * is no match at all. */ int match_hostname(const char *host, const char *pattern, unsigned int len) { - return match_pattern_list(host, pattern, len, 1); + return match_pattern_list(host, pattern, len, 1); } + |