mirror of
https://github.com/samba-team/samba.git
synced 2024-12-22 13:34:15 +03:00
s4: Fix a few warnings.
This commit is contained in:
parent
4b11e0c67c
commit
f679def4f2
@ -16,6 +16,7 @@
|
||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#include <Python.h>
|
||||
#include "includes.h"
|
||||
#include "param/param.h"
|
||||
#include "pyauth.h"
|
||||
|
@ -33,6 +33,8 @@
|
||||
#include "auth/auth.h"
|
||||
#include "ldb_wrap.h"
|
||||
#include "param/param.h"
|
||||
#include "librpc/gen_ndr/drsblobs.h"
|
||||
#include "dsdb/schema/schema.h"
|
||||
#include "dsdb/common/proto.h"
|
||||
#endif
|
||||
|
||||
|
@ -23,6 +23,7 @@
|
||||
struct packet_context;
|
||||
struct tevent_context;
|
||||
struct tevent_fd;
|
||||
struct socket_context;
|
||||
|
||||
typedef NTSTATUS (*packet_full_request_fn_t)(void *private_data,
|
||||
DATA_BLOB blob, size_t *packet_size);
|
||||
|
@ -68,7 +68,7 @@ static PyObject *PyLdb_FromLdbContext(struct ldb_context *ldb_ctx)
|
||||
if (ldb_mod == NULL)
|
||||
return NULL;
|
||||
|
||||
ldb_ctx_type = PyObject_GetAttrString(ldb_mod, "Ldb");
|
||||
ldb_ctx_type = (PyTypeObject *)PyObject_GetAttrString(ldb_mod, "Ldb");
|
||||
|
||||
ret = (PyLdbObject *)ldb_ctx_type->tp_alloc(ldb_ctx_type, 0);
|
||||
if (ret == NULL) {
|
||||
|
@ -3551,7 +3551,6 @@ bool torture_samba3_getaliasmembership_0(struct torture_context *torture)
|
||||
{
|
||||
struct dcerpc_pipe *p;
|
||||
NTSTATUS status;
|
||||
bool ret;
|
||||
struct samr_Connect2 c;
|
||||
struct samr_OpenDomain o;
|
||||
struct dom_sid sid;
|
||||
|
@ -47,13 +47,13 @@
|
||||
status = smb2_getinfo_file(tree, tctx, &_q); \
|
||||
CHECK_STATUS(status, NT_STATUS_OK); \
|
||||
/* Handle a Vista bug where SEC_STD_SYNCHRONIZE doesn't come back. */ \
|
||||
if (((flags & CHECK_ACCESS_IGNORE) == CHECK_ACCESS_IGNORE) && \
|
||||
if ((((flags) & CHECK_ACCESS_IGNORE) == CHECK_ACCESS_IGNORE) && \
|
||||
((_q.access_information.out.access_flags & CHECK_ACCESS_IGNORE) != CHECK_ACCESS_IGNORE)) { \
|
||||
torture_comment(tctx, "SKIPPING (Vista bug): (%s) Incorrect access_flags 0x%08x - should be 0x%08x\n", \
|
||||
__location__, _q.access_information.out.access_flags, (flags)); \
|
||||
} \
|
||||
if ((_q.access_information.out.access_flags & ~CHECK_ACCESS_IGNORE) != \
|
||||
((flags & ~CHECK_ACCESS_IGNORE))) { \
|
||||
(((flags) & ~CHECK_ACCESS_IGNORE))) { \
|
||||
torture_result(tctx, TORTURE_FAIL, "(%s) Incorrect access_flags 0x%08x - should be 0x%08x\n", \
|
||||
__location__, _q.access_information.out.access_flags, (flags)); \
|
||||
ret = false; \
|
||||
|
Loading…
Reference in New Issue
Block a user