This fixes compilation with -Wstrict-overflow=2
Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
const char *buf, size_t length, int start_pos)
{
size_t i;
- int total=0, ret;
+ size_t total = 0;
+ int ret;
for (i=0;i<length;i++) {
ret = fprintf_fn(private_data, "%c", buf[i]);
{
TALLOC_CTX *mem_ctx;
unsigned int i, j;
- int total=0, ret;
+ size_t total = 0;
+ int ret;
char *p;
const struct ldb_message *msg;
const char * const * secret_attributes = ldb_get_opaque(ldb, LDB_SECRET_ATTRIBUTE_LIST_OPAQUE);