Simplify filters increment code in config.

This commit is contained in:
gamemann
2021-11-12 18:21:04 +00:00
parent 0268ab26ee
commit 54b0e9cb9b

View File

@@ -479,11 +479,8 @@ int readcfg(struct config *cfg)
cfg->filters[i].icmpopts.do_type = 1;
}
// Assign ID.
cfg->filters[i].id = filters + 1;
// Increase filter count.
filters++;
// Assign ID and increase filter count.
cfg->filters[i].id = ++filters;
}
config_destroy(&conf);