summaryrefslogtreecommitdiffstats
path: root/libssh/match.c
diff options
context:
space:
mode:
Diffstat (limited to 'libssh/match.c')
-rw-r--r--libssh/match.c14
1 files changed, 4 insertions, 10 deletions
diff --git a/libssh/match.c b/libssh/match.c
index cd2fc45a..83600065 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);
}