mirror of
https://github.com/samba-team/samba.git
synced 2025-02-18 17:57:55 +03:00
r4022: fix compiler warnings
metze (This used to be commit 79d0eb2f677f9e985ba476a9680f68537d41be6f)
This commit is contained in:
parent
75f58e2d0f
commit
b6c4b63dc5
@ -80,7 +80,7 @@ static char *ldb_dn_key(struct ldb_context *ldb,
|
||||
see if a attribute value is in the list of indexed attributes
|
||||
*/
|
||||
static int ldb_msg_find_idx(const struct ldb_message *msg, const char *attr,
|
||||
int *v_idx, const char *key)
|
||||
unsigned int *v_idx, const char *key)
|
||||
{
|
||||
unsigned int i, j;
|
||||
for (i=0;i<msg->num_elements;i++) {
|
||||
@ -509,7 +509,8 @@ static int ldb_index_filter(struct ldb_module *module, struct ldb_parse_tree *tr
|
||||
const struct dn_list *dn_list,
|
||||
const char * const attrs[], struct ldb_message ***res)
|
||||
{
|
||||
unsigned int count = 0, i;
|
||||
unsigned int i;
|
||||
int count = 0;
|
||||
|
||||
for (i=0;i<dn_list->count;i++) {
|
||||
struct ldb_message msg;
|
||||
|
@ -44,7 +44,7 @@
|
||||
#define LTDB_PACKING_FORMAT_NODN 0x26011966
|
||||
|
||||
/* use a portable integer format */
|
||||
static void put_uint32(uint8_t *p, int ofs, unsigned int val)
|
||||
static void put_uint32(char *p, int ofs, unsigned int val)
|
||||
{
|
||||
p += ofs;
|
||||
p[0] = val&0xFF;
|
||||
@ -53,7 +53,7 @@ static void put_uint32(uint8_t *p, int ofs, unsigned int val)
|
||||
p[3] = (val>>24) & 0xFF;
|
||||
}
|
||||
|
||||
static unsigned int pull_uint32(uint8_t *p, int ofs)
|
||||
static unsigned int pull_uint32(char *p, int ofs)
|
||||
{
|
||||
p += ofs;
|
||||
return p[0] | (p[1]<<8) | (p[2]<<16) | (p[3]<<24);
|
||||
|
@ -353,7 +353,7 @@ int ltdb_search_dn(struct ldb_module *module, char *dn,
|
||||
*/
|
||||
int ltdb_add_attr_results(struct ldb_module *module, struct ldb_message *msg,
|
||||
const char * const attrs[],
|
||||
unsigned int *count,
|
||||
int *count,
|
||||
struct ldb_message ***res)
|
||||
{
|
||||
struct ldb_context *ldb = module->ldb;
|
||||
|
@ -90,7 +90,7 @@ int ltdb_search_dn(struct ldb_module *module, char *dn,
|
||||
const char * const attrs[], struct ldb_message ***res);
|
||||
int ltdb_add_attr_results(struct ldb_module *module, struct ldb_message *msg,
|
||||
const char * const attrs[],
|
||||
unsigned int *count,
|
||||
int *count,
|
||||
struct ldb_message ***res);
|
||||
int ltdb_search_free(struct ldb_module *module, struct ldb_message **msgs);
|
||||
int ltdb_search(struct ldb_module *module, const char *base,
|
||||
|
Loading…
x
Reference in New Issue
Block a user