diff options
author | Andreas Schneider <mail@cynapses.org> | 2009-03-08 13:35:34 +0000 |
---|---|---|
committer | Andreas Schneider <mail@cynapses.org> | 2009-03-08 13:35:34 +0000 |
commit | cf1e7fa836b5cb33b3b8e0e01f1e1cb6f2c3c462 (patch) | |
tree | aa990959d78f10bf40978250f53a9a2ee5f5caf9 /libssh | |
parent | 14580705d56e70b10cfd603c8878da29f2f2d770 (diff) | |
download | libssh-cf1e7fa836b5cb33b3b8e0e01f1e1cb6f2c3c462.tar.gz libssh-cf1e7fa836b5cb33b3b8e0e01f1e1cb6f2c3c462.tar.xz libssh-cf1e7fa836b5cb33b3b8e0e01f1e1cb6f2c3c462.zip |
Fix cross compilation errors.
git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@248 7dcaeef0-15fb-0310-b436-a5af3365683c
Diffstat (limited to 'libssh')
-rw-r--r-- | libssh/match.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libssh/match.c b/libssh/match.c index 83600065..f3488a09 100644 --- a/libssh/match.c +++ b/libssh/match.c @@ -107,11 +107,11 @@ static int match_pattern(const char *s, const char *pattern) { */ static int match_pattern_list(const char *string, const char *pattern, - u_int len, int dolower) { + unsigned int len, int dolower) { char sub[1024]; int negated; int got_positive; - u_int i, subi; + unsigned int i, subi; got_positive = 0; for (i = 0; i < len;) { @@ -164,6 +164,6 @@ static int match_pattern_list(const char *string, const char *pattern, * indicate negation). Returns -1 if negation matches, 1 if there is * a positive match, 0 if there is no match at all. */ -static int match_hostname(const char *host, const char *pattern, u_int len) { +static int match_hostname(const char *host, const char *pattern, unsigned int len) { return match_pattern_list(host, pattern, len, 1); } |