diff options
Diffstat (limited to 'src/format.c')
-rw-r--r-- | src/format.c | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/src/format.c b/src/format.c index 482f306..f249b0b 100644 --- a/src/format.c +++ b/src/format.c @@ -314,7 +314,6 @@ static void format_free_choices(struct format_choice *choices) { struct format_choice *next; - int i; while (choices != NULL) { next = choices->next; format_free_bv_list(choices->values); @@ -354,9 +353,7 @@ format_add_choice(struct format_choice **choices, char *offset, struct berval **values) { struct format_choice *choice; - unsigned int size; int i; - char *p; if (values != NULL) { choice = malloc(sizeof(*choice)); if (choice != NULL) { @@ -485,7 +482,7 @@ format_first(struct plugin_state *state, Slapi_PBlock *pb, Slapi_Entry *e, struct format_choice **outbuf_choices, char ***ref_attrs, struct format_inref_attr ***inref_attrs) { - int ret, i, len, argc; + int ret, i, argc; Slapi_ValueSet *values; Slapi_Value *value; const struct berval *val; @@ -539,7 +536,7 @@ format_deref(struct plugin_state *state, Slapi_PBlock *pb, Slapi_Entry *e, struct format_choice **outbuf_choices, char ***ref_attrs, struct format_inref_attr ***inref_attrs) { - int i, j, slen, ret, argc; + int i, j, ret, argc; Slapi_Entry *ref; Slapi_DN *refdn; Slapi_ValueSet *ref_values, *values; @@ -850,7 +847,7 @@ format_merge(struct plugin_state *state, Slapi_PBlock *pb, Slapi_Entry *e, struct format_choice **outbuf_choices, char ***ref_attrs, struct format_inref_attr ***inref_attrs) { - int ret, i, j, argc, len, slen, count; + int ret, i, j, argc, slen, count; unsigned int *lengths; char **argv, **values; const char *sep; @@ -1344,7 +1341,7 @@ format_single(struct plugin_state *state, Slapi_PBlock *pb, Slapi_Entry *e, const char *d; const struct berval *val; struct berval bv; - int count, disposition, buffer_flags, i, j; + int count, disposition, buffer_flags, i; memset(&bv, 0, sizeof(bv)); if (slapi_vattr_values_get(e, (char *) attr, &value_set, &disposition, &actual_attr, @@ -1451,7 +1448,6 @@ format_trim_value(struct plugin_state *state, struct berval input, struct berval ret; char *buf; unsigned int i, len; - int j, k; buf = xmemdup(input.bv_val, input.bv_len); len = input.bv_len; if (buf != NULL) { @@ -2109,7 +2105,7 @@ format_get_data_set(struct plugin_state *state, Slapi_Entry *e, { struct format_choice *choices, *this_choice; struct berval *val; - char **ret, *template, *s; + char **ret, *template; int combinations, groupsize, i, j, k, offset, length; unsigned int template_len; choices = NULL; |