In both cases the unsigned counter fits better:
- in the first one since we are counting LDB objects starting from 0
- in the second since we are counting an array starting from 0
const char *alias_from,
char **alias_to)
{
- int i;
+ unsigned int i;
int ret;
struct ldb_result *res;
struct ldb_message_element *spnmappings;
switch (format_offered) {
case DRSUAPI_DS_NAME_FORMAT_UNKNOWN:
{
- int i;
+ unsigned int i;
enum drsuapi_DsNameFormat formats[] = {
DRSUAPI_DS_NAME_FORMAT_FQDN_1779, DRSUAPI_DS_NAME_FORMAT_USER_PRINCIPAL,
DRSUAPI_DS_NAME_FORMAT_NT4_ACCOUNT, DRSUAPI_DS_NAME_FORMAT_CANONICAL,