diff options
| author | Michał Górny <mgorny@gentoo.org> | 2015-05-24 13:18:30 +0200 |
|---|---|---|
| committer | Michał Górny <mgorny@gentoo.org> | 2015-05-24 13:18:30 +0200 |
| commit | 462865d7025807beab1323f85ceb055ed9ea2bfb (patch) | |
| tree | 0fbf256a18c276eacb36fda91a4e46512523015e /include | |
| parent | c11daac9de2fb582873e2471346526f33835226e (diff) | |
| download | libgit2-462865d7025807beab1323f85ceb055ed9ea2bfb.tar.gz | |
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.
Diffstat (limited to 'include')
| -rw-r--r-- | include/git2/cred_helpers.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/git2/cred_helpers.h b/include/git2/cred_helpers.h index 1d8809211..840c22536 100644 --- a/include/git2/cred_helpers.h +++ b/include/git2/cred_helpers.h @@ -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; |
