summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGerald Carter <jerry@samba.org>2004-08-12 20:27:09 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 10:52:20 -0500
commita817cc16b246d4f0cfd335884eec7380966c77a8 (patch)
tree9fd5d1988e93a2e81e53145302139a7c0df34b1d
parentefeeb4874011ad21422abc7e9c718df6456c513b (diff)
downloadsamba-a817cc16b246d4f0cfd335884eec7380966c77a8.tar.gz
samba-a817cc16b246d4f0cfd335884eec7380966c77a8.tar.bz2
samba-a817cc16b246d4f0cfd335884eec7380966c77a8.zip
r1789: compiler warnings from SuSE
(This used to be commit 7e44193be103fad273796218c8f5e5f9a1657c3c)
-rw-r--r--source3/libads/kerberos_verify.c4
-rw-r--r--source3/python/py_spoolss_drivers.c4
2 files changed, 6 insertions, 2 deletions
diff --git a/source3/libads/kerberos_verify.c b/source3/libads/kerberos_verify.c
index bdac22a902..961b92ccc6 100644
--- a/source3/libads/kerberos_verify.c
+++ b/source3/libads/kerberos_verify.c
@@ -26,6 +26,10 @@
#ifdef HAVE_KRB5
+#if !defined(HAVE_KRB5_PRINC_COMPONENT)
+const krb5_data *krb5_princ_component(krb5_context, krb5_principal, int );
+#endif
+
/**********************************************************************************
Try to verify a ticket using the system keytab... the system keytab has kvno -1 entries, so
it's more like what microsoft does... see comment in utils/net_ads.c in the
diff --git a/source3/python/py_spoolss_drivers.c b/source3/python/py_spoolss_drivers.c
index 12190519ec..9424fe1527 100644
--- a/source3/python/py_spoolss_drivers.c
+++ b/source3/python/py_spoolss_drivers.c
@@ -190,12 +190,12 @@ PyObject *spoolss_hnd_getprinterdriver(PyObject *self, PyObject *args,
werror = cli_spoolss_getprinterdriver(
hnd->cli, hnd->mem_ctx, 0, &needed, &hnd->pol, level,
- version, arch, &ctr);
+ arch, version, &ctr);
if (W_ERROR_V(werror) == ERRinsufficientbuffer)
werror = cli_spoolss_getprinterdriver(
hnd->cli, hnd->mem_ctx, needed, NULL, &hnd->pol,
- level, version, arch, &ctr);
+ level, arch, version, &ctr);
if (!W_ERROR_IS_OK(werror)) {
PyErr_SetObject(spoolss_werror, py_werror_tuple(werror));