diff options
author | Derrell Lipman <derrell@samba.org> | 2005-03-30 04:40:24 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 10:56:24 -0500 |
commit | 934d41d23956c663406ff9d68e5a8ba9d81b5096 (patch) | |
tree | 5680eab3013a7e2f364d8ca8782bfb32d285ab99 /source3/libads | |
parent | 7387dab585dadf710dbb72ddd211db1a1ba725c7 (diff) | |
download | samba-934d41d23956c663406ff9d68e5a8ba9d81b5096.tar.gz samba-934d41d23956c663406ff9d68e5a8ba9d81b5096.tar.xz samba-934d41d23956c663406ff9d68e5a8ba9d81b5096.zip |
r6127: Eliminated all compiler warnings pertaining to mismatched "qualifiers". The
whole of samba comiles warning-free with the default compiler flags.
Temporarily defined -Wall to locate other potential problems. Found an
unused static function (#ifdefed out rather than deleted, in case it's
needed for something in progress).
There are also a number of uses of undeclared functions, mostly krb5_*.
Files with these problems need to have appropriate header files included,
but they are not fixed in this update.
oplock_linux.c.c has undefined functions capget() and capset(), which need
to have "#undef _POSIX_SOURCE" specified before including <sys/capability.h>,
but that could potentially have other side effects, so that remains uncorrected
as well.
The flag -Wall should be added permanently to CFLAGS, and all warnings then
generated should be eliminated.
(This used to be commit 5b19ede88ed80318e392f8017f4573fbb2ecbe0f)
Diffstat (limited to 'source3/libads')
-rw-r--r-- | source3/libads/kerberos.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source3/libads/kerberos.c b/source3/libads/kerberos.c index 4c9997e080..43ccb18b5a 100644 --- a/source3/libads/kerberos.c +++ b/source3/libads/kerberos.c @@ -88,7 +88,8 @@ int kerberos_kinit_password(const char *principal, return code; } - if ((code = krb5_get_init_creds_password(ctx, &my_creds, me, password, + if ((code = krb5_get_init_creds_password(ctx, &my_creds, me, + (char *) password, kerb_prompter, NULL, 0, NULL, NULL))) { krb5_free_principal(ctx, me); |