]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
r1789: compiler warnings from SuSE
authorGerald Carter <jerry@samba.org>
Thu, 12 Aug 2004 20:27:09 +0000 (20:27 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 15:52:20 +0000 (10:52 -0500)
source/libads/kerberos_verify.c
source/python/py_spoolss_drivers.c

index bdac22a90224e4a49452205ee9e45547d8174519..961b92ccc61045df2551805df8bf9bde3897aadd 100644 (file)
 
 #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
index 12190519ecc84d60ef3b8ad1ebfbc231696b4dcf..9424fe1527d01da32c25a38c185615e0504e31ef 100644 (file)
@@ -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));