mirror of
https://git.proxmox.com/git/libgit2
synced 2025-06-19 22:44:42 +00:00
cred_helpers: Add 'const' qualifiers to git_cred_userpass_payload
Make both username & password in git_cred_userpass_payload 'const'. The values are not altered anywhere, and the extra qualifier allows clients to assign 'const' values there.
This commit is contained in:
parent
c11daac9de
commit
462865d702
@ -22,8 +22,8 @@ GIT_BEGIN_DECL
|
||||
* Payload for git_cred_stock_userpass_plaintext.
|
||||
*/
|
||||
typedef struct git_cred_userpass_payload {
|
||||
char *username;
|
||||
char *password;
|
||||
const char *username;
|
||||
const char *password;
|
||||
} git_cred_userpass_payload;
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user