mirror of
https://git.libssh.org/projects/libssh.git
synced 2026-02-11 02:38:09 +09:00
Fix warnings
This commit is contained in:
@@ -390,7 +390,6 @@ error:
|
|||||||
static int dh_handshake(ssh_session session) {
|
static int dh_handshake(ssh_session session) {
|
||||||
ssh_string e = NULL;
|
ssh_string e = NULL;
|
||||||
ssh_string f = NULL;
|
ssh_string f = NULL;
|
||||||
ssh_string pubkey = NULL;
|
|
||||||
ssh_string signature = NULL;
|
ssh_string signature = NULL;
|
||||||
int rc = SSH_ERROR;
|
int rc = SSH_ERROR;
|
||||||
|
|
||||||
|
|||||||
@@ -27,6 +27,7 @@
|
|||||||
|
|
||||||
#include "libssh/priv.h"
|
#include "libssh/priv.h"
|
||||||
#include "libssh/session.h"
|
#include "libssh/session.h"
|
||||||
|
#include "libssh/misc.h"
|
||||||
|
|
||||||
enum ssh_config_opcode_e {
|
enum ssh_config_opcode_e {
|
||||||
SOC_UNSUPPORTED = -1,
|
SOC_UNSUPPORTED = -1,
|
||||||
@@ -158,6 +159,7 @@ static int ssh_config_parse_line(ssh_session session, const char *line,
|
|||||||
const char *p;
|
const char *p;
|
||||||
char *s, *x;
|
char *s, *x;
|
||||||
char *keyword;
|
char *keyword;
|
||||||
|
char *lowerhost;
|
||||||
size_t len;
|
size_t len;
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
@@ -187,7 +189,7 @@ static int ssh_config_parse_line(ssh_session session, const char *line,
|
|||||||
switch (opcode) {
|
switch (opcode) {
|
||||||
case SOC_HOST:
|
case SOC_HOST:
|
||||||
*parsing = 0;
|
*parsing = 0;
|
||||||
char* lowerhost = (session->host) ? ssh_lowercase(session->host) : NULL;
|
lowerhost = (session->host) ? ssh_lowercase(session->host) : NULL;
|
||||||
for (p = ssh_config_get_str(&s, NULL); p && *p;
|
for (p = ssh_config_get_str(&s, NULL); p && *p;
|
||||||
p = ssh_config_get_str(&s, NULL)) {
|
p = ssh_config_get_str(&s, NULL)) {
|
||||||
if (match_hostname(lowerhost, p, strlen(p))) {
|
if (match_hostname(lowerhost, p, strlen(p))) {
|
||||||
|
|||||||
@@ -30,7 +30,7 @@
|
|||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <sys/stat.h>
|
#include <sys/stat.h>
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
|
#include <ctype.h>
|
||||||
|
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
#define _WIN32_IE 0x0501 //SHGetSpecialFolderPath
|
#define _WIN32_IE 0x0501 //SHGetSpecialFolderPath
|
||||||
|
|||||||
Reference in New Issue
Block a user