mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-01-06 10:46:21 +08:00
cast pointer to long instead of int to hopefully avoid
truncation. Change does at least silence warning.
This commit is contained in:
parent
366ef40ceb
commit
bb19302db6
@ -286,7 +286,7 @@ int config_set_vals(ConfigTable *Conf, ConfigArgs *c) {
|
|||||||
c->log, c->msg, 0);
|
c->log, c->msg, 0);
|
||||||
return(ARG_BAD_CONF);
|
return(ARG_BAD_CONF);
|
||||||
}
|
}
|
||||||
ptr = (void *)((char *)ptr + (int)Conf->arg_item);
|
ptr = (void *)((char *)ptr + (long)Conf->arg_item);
|
||||||
} else if (arg_type & ARGS_POINTER) {
|
} else if (arg_type & ARGS_POINTER) {
|
||||||
ptr = Conf->arg_item;
|
ptr = Conf->arg_item;
|
||||||
}
|
}
|
||||||
@ -372,7 +372,7 @@ config_get_vals(ConfigTable *cf, ConfigArgs *c)
|
|||||||
ptr = c->bi->bi_private;
|
ptr = c->bi->bi_private;
|
||||||
else
|
else
|
||||||
return 1;
|
return 1;
|
||||||
ptr = (void *)((char *)ptr + (int)cf->arg_item);
|
ptr = (void *)((char *)ptr + (long)cf->arg_item);
|
||||||
} else {
|
} else {
|
||||||
ptr = cf->arg_item;
|
ptr = cf->arg_item;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user