confile: cleanup lxc_config_parse_arch()

parent bce0472a
......@@ -2990,7 +2990,6 @@ void lxc_config_define_free(struct lxc_list *defines)
signed long lxc_config_parse_arch(const char *arch)
{
#if HAVE_SYS_PERSONALITY_H
size_t i;
struct per_name {
char *name;
unsigned long per;
......@@ -3024,7 +3023,7 @@ signed long lxc_config_parse_arch(const char *arch)
};
size_t len = sizeof(pername) / sizeof(pername[0]);
for (i = 0; i < len; i++)
for (int i = 0; i < len; i++)
if (!strcmp(pername[i].name, arch))
return pername[i].per;
#endif
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment