mirror of
https://git.libssh.org/projects/libssh.git
synced 2026-02-09 09:54:25 +09:00
Fix cross compilation errors.
git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@248 7dcaeef0-15fb-0310-b436-a5af3365683c
This commit is contained in:
@@ -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,
|
static int match_pattern_list(const char *string, const char *pattern,
|
||||||
u_int len, int dolower) {
|
unsigned int len, int dolower) {
|
||||||
char sub[1024];
|
char sub[1024];
|
||||||
int negated;
|
int negated;
|
||||||
int got_positive;
|
int got_positive;
|
||||||
u_int i, subi;
|
unsigned int i, subi;
|
||||||
|
|
||||||
got_positive = 0;
|
got_positive = 0;
|
||||||
for (i = 0; i < len;) {
|
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
|
* indicate negation). Returns -1 if negation matches, 1 if there is
|
||||||
* a positive match, 0 if there is no match at all.
|
* 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);
|
return match_pattern_list(host, pattern, len, 1);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user