mirror of
https://git.proxmox.com/git/libgit2
synced 2025-07-16 19:48:48 +00:00
Fix warnings
This commit is contained in:
parent
8ea7472e08
commit
8f2a3d6251
@ -97,7 +97,7 @@ static int get_check_cert(int *out, git_repository *repo)
|
|||||||
* most specific to least specific. */
|
* most specific to least specific. */
|
||||||
|
|
||||||
/* GIT_SSL_NO_VERIFY environment variable */
|
/* GIT_SSL_NO_VERIFY environment variable */
|
||||||
if (val = getenv("GIT_SSL_NO_VERIFY"))
|
if ((val = getenv("GIT_SSL_NO_VERIFY")) != NULL)
|
||||||
return git_config_parse_bool(out, val);
|
return git_config_parse_bool(out, val);
|
||||||
|
|
||||||
/* http.sslVerify config setting */
|
/* http.sslVerify config setting */
|
||||||
@ -1494,12 +1494,12 @@ int git_remote_rename(
|
|||||||
|
|
||||||
int git_remote_update_fetchhead(git_remote *remote)
|
int git_remote_update_fetchhead(git_remote *remote)
|
||||||
{
|
{
|
||||||
return remote->update_fetchhead;
|
return (remote->update_fetchhead != 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
void git_remote_set_update_fetchhead(git_remote *remote, int value)
|
void git_remote_set_update_fetchhead(git_remote *remote, int value)
|
||||||
{
|
{
|
||||||
remote->update_fetchhead = value;
|
remote->update_fetchhead = (value != 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
int git_remote_is_valid_name(
|
int git_remote_is_valid_name(
|
||||||
|
@ -28,8 +28,8 @@ struct git_remote {
|
|||||||
git_transfer_progress stats;
|
git_transfer_progress stats;
|
||||||
unsigned int need_pack;
|
unsigned int need_pack;
|
||||||
git_remote_autotag_option_t download_tags;
|
git_remote_autotag_option_t download_tags;
|
||||||
unsigned int check_cert;
|
int check_cert;
|
||||||
unsigned int update_fetchhead;
|
int update_fetchhead;
|
||||||
};
|
};
|
||||||
|
|
||||||
const char* git_remote__urlfordirection(struct git_remote *remote, int direction);
|
const char* git_remote__urlfordirection(struct git_remote *remote, int direction);
|
||||||
|
@ -190,6 +190,8 @@ static int cred_failure_cb(
|
|||||||
unsigned int allowed_types,
|
unsigned int allowed_types,
|
||||||
void *data)
|
void *data)
|
||||||
{
|
{
|
||||||
|
GIT_UNUSED(cred); GIT_UNUSED(url); GIT_UNUSED(username_from_url);
|
||||||
|
GIT_UNUSED(allowed_types); GIT_UNUSED(data);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user