... of the function to silence a compiler warning when building with -std=c89:
cc -c -pipe -fstack-protector-all -ggdb -Wshadow -Wconversion -I/usr/local/include/ -pthread -Wall -std=c89 cgiedit.c -o cgiedit.o
cgiedit.c:4436:9: warning: GCC does not allow variable declarations in for loop initializers before C99 [-Wgcc-compat]
for (int i=0; i < SZ(desc); ++i)
^
1 warning generated.
{
jb_err err = JB_ERR_OK;
int filter_identifier = 0;
+ int i;
char *prepared_template = strdup("");
struct action_multi {
{ 'n', action->multi_remove[type->multi_action_index][0].first }
};
- for (int i=0; i < SZ(desc); ++i)
+ for (i = 0; i < SZ(desc); ++i)
{
const char radio = desc[i].radio;
struct list_entry *entry = desc[i].list;