1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-11 05:18:09 +03:00

s4:ldb-samba/ldb_wrap.*-dsdb/samdb/samdb.c - handle LDB connection flags as unsigned

The LDB API ("ldb_connect") prescribes that they should be "unsigned".

Signed-off-by: Metze
This commit is contained in:
Matthias Dieter Wallnöfer 2011-04-10 19:54:31 +02:00
parent 4618a7f3a1
commit d34205add3
3 changed files with 7 additions and 7 deletions

View File

@ -96,7 +96,7 @@ struct ldb_context *samdb_connect(TALLOC_CTX *mem_ctx,
struct tevent_context *ev_ctx,
struct loadparm_context *lp_ctx,
struct auth_session_info *session_info,
int flags)
unsigned int flags)
{
struct ldb_context *ldb;
struct dsdb_schema *schema;

View File

@ -177,7 +177,7 @@ char *wrap_casefold(void *context, void *mem_ctx, const char *s, size_t n)
struct loadparm_context *lp_ctx,
struct auth_session_info *session_info,
struct cli_credentials *credentials,
int flags)
unsigned int flags)
{
struct ldb_wrap *w;
/* see if we can re-use an existing ldb */
@ -195,7 +195,7 @@ char *wrap_casefold(void *context, void *mem_ctx, const char *s, size_t n)
}
int samba_ldb_connect(struct ldb_context *ldb, struct loadparm_context *lp_ctx,
const char *url, int flags)
const char *url, unsigned int flags)
{
int ret;
char *real_url = NULL;
@ -230,7 +230,7 @@ int samba_ldb_connect(struct ldb_context *ldb, struct loadparm_context *lp_ctx,
struct loadparm_context *lp_ctx,
struct auth_session_info *session_info,
struct cli_credentials *credentials,
int flags,
unsigned int flags,
struct ldb_context *ldb)
{
struct ldb_wrap *w;

View File

@ -53,18 +53,18 @@ struct ldb_context *ldb_wrap_find(const char *url,
struct loadparm_context *lp_ctx,
struct auth_session_info *session_info,
struct cli_credentials *credentials,
int flags);
unsigned int flags);
bool ldb_wrap_add(const char *url, struct tevent_context *ev,
struct loadparm_context *lp_ctx,
struct auth_session_info *session_info,
struct cli_credentials *credentials,
int flags,
unsigned int flags,
struct ldb_context *ldb);
char *ldb_relative_path(struct ldb_context *ldb,
TALLOC_CTX *mem_ctx,
const char *name);
int samba_ldb_connect(struct ldb_context *ldb, struct loadparm_context *lp_ctx,
const char *url, int flags);
const char *url, unsigned int flags);
#endif /* _LDB_WRAP_H_ */