Commit 462865d7 by Michał Górny

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.
parent c11daac9
...@@ -22,8 +22,8 @@ GIT_BEGIN_DECL ...@@ -22,8 +22,8 @@ GIT_BEGIN_DECL
* Payload for git_cred_stock_userpass_plaintext. * Payload for git_cred_stock_userpass_plaintext.
*/ */
typedef struct git_cred_userpass_payload { typedef struct git_cred_userpass_payload {
char *username; const char *username;
char *password; const char *password;
} git_cred_userpass_payload; } git_cred_userpass_payload;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment