diff options
author | Andreas Schneider <mail@cynapses.org> | 2009-02-02 16:09:38 +0000 |
---|---|---|
committer | Andreas Schneider <mail@cynapses.org> | 2009-02-02 16:09:38 +0000 |
commit | 974a160fd31c10852e9bb811d14a33cff1bae7c4 (patch) | |
tree | 4bda1914a6a8f141a4faf57014cf54a868a0c0f2 /libssh/match.c | |
parent | 5e03a95a937c8c64e4bfab8f796d88a4168857bd (diff) | |
download | libssh-974a160fd31c10852e9bb811d14a33cff1bae7c4.tar.gz libssh-974a160fd31c10852e9bb811d14a33cff1bae7c4.tar.xz libssh-974a160fd31c10852e9bb811d14a33cff1bae7c4.zip |
Fix several build warnings.
git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@214 7dcaeef0-15fb-0310-b436-a5af3365683c
Diffstat (limited to 'libssh/match.c')
-rw-r--r-- | libssh/match.c | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/libssh/match.c b/libssh/match.c index cd2fc45..8360006 100644 --- a/libssh/match.c +++ b/libssh/match.c @@ -43,9 +43,7 @@ * and * as wildcards), and zero if it does not match. */ -int -match_pattern(const char *s, const char *pattern) -{ +static int match_pattern(const char *s, const char *pattern) { for (;;) { /* If at end of pattern, accept if also at end of string. */ if (!*pattern) @@ -108,10 +106,8 @@ match_pattern(const char *s, const char *pattern) * a positive match, 0 if there is no match at all. */ -int -match_pattern_list(const char *string, const char *pattern, u_int len, - int dolower) -{ +static int match_pattern_list(const char *string, const char *pattern, + u_int len, int dolower) { char sub[1024]; int negated; int got_positive; @@ -168,8 +164,6 @@ match_pattern_list(const char *string, const char *pattern, u_int len, * 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, u_int len) -{ +static int match_hostname(const char *host, const char *pattern, u_int len) { return match_pattern_list(host, pattern, len, 1); } |