summaryrefslogtreecommitdiff
path: root/source4/auth/credentials/credentials.i
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2007-12-23 20:56:41 -0600
committerStefan Metzmacher <metze@samba.org>2007-12-24 01:51:04 -0600
commitd0ba9f001474bfee9b1e8fb516effab736cd4050 (patch)
tree1f4f21c4cf230e2438b1a9fac46eab7e7714b5e6 /source4/auth/credentials/credentials.i
parent3ee442c54f658e0dc9541a492e46fd8f6bf3a7f4 (diff)
downloadsamba-d0ba9f001474bfee9b1e8fb516effab736cd4050.tar.gz
samba-d0ba9f001474bfee9b1e8fb516effab736cd4050.tar.bz2
samba-d0ba9f001474bfee9b1e8fb516effab736cd4050.zip
r26572: Fix warnings in the Python code.
(This used to be commit 15038d9586d0b58f301ca8c39c21ef10c4283f28)
Diffstat (limited to 'source4/auth/credentials/credentials.i')
-rw-r--r--source4/auth/credentials/credentials.i8
1 files changed, 4 insertions, 4 deletions
diff --git a/source4/auth/credentials/credentials.i b/source4/auth/credentials/credentials.i
index b06c4ff6da..8f09ff4b18 100644
--- a/source4/auth/credentials/credentials.i
+++ b/source4/auth/credentials/credentials.i
@@ -43,14 +43,14 @@ typedef struct cli_credentials cli_credentials;
%}
%typemap(out,noblock=1) struct samr_Password * {
- $result = PyString_FromStringAndSize($1->hash, 16);
+ $result = PyString_FromStringAndSize((char *)$1->hash, 16);
}
%talloctype(cli_credentials);
%rename(Credentials) cli_credentials;
typedef struct cli_credentials {
%extend {
- cli_credentials() {
+ cli_credentials(void) {
return cli_credentials_init(NULL);
}
/* username */
@@ -90,8 +90,8 @@ typedef struct cli_credentials {
const struct samr_Password *get_nt_hash(TALLOC_CTX *mem_ctx);
- bool authentication_requested();
+ bool authentication_requested(void);
- bool wrong_password();
+ bool wrong_password(void);
}
} cli_credentials;