diff options
author | Stef Walter <stefw@redhat.com> | 2014-01-10 08:08:58 +0100 |
---|---|---|
committer | Jakub Hrozek <jhrozek@redhat.com> | 2014-01-10 15:19:42 +0100 |
commit | 4b8021779e4db2a212a8214c17e778e843ae2b3a (patch) | |
tree | 444d1d8ef3cf7d3049696ba5a200881f6c71356a /src/util/authtok.c | |
parent | ef4d56c1ace330f46f408a7f7d203f5364fefcfc (diff) | |
download | sssd-4b8021779e4db2a212a8214c17e778e843ae2b3a.tar.gz sssd-4b8021779e4db2a212a8214c17e778e843ae2b3a.tar.xz sssd-4b8021779e4db2a212a8214c17e778e843ae2b3a.zip |
util: Fix const cast failures when building with -Werror
When building with -Werror 'make check' fails with many
errors like:
../src/tests/cmocka/test_authtok.c: In function ‘test_sss_authtok_password’:
../src/tests/cmocka/test_authtok.c:98:48: error: cast discards ‘__attribute__((const))’ qualifier from pointer target type [-Werror=cast-qual]
Make sss_authtok_set() @data argument const, and fix its documentation
Diffstat (limited to 'src/util/authtok.c')
-rw-r--r-- | src/util/authtok.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/util/authtok.c b/src/util/authtok.c index 73a4ccf1a..e9c2881bf 100644 --- a/src/util/authtok.c +++ b/src/util/authtok.c @@ -171,7 +171,7 @@ errno_t sss_authtok_set_ccfile(struct sss_auth_token *tok, errno_t sss_authtok_set(struct sss_auth_token *tok, enum sss_authtok_type type, - uint8_t *data, size_t len) + const uint8_t *data, size_t len) { switch (type) { case SSS_AUTHTOK_TYPE_PASSWORD: |