Arc type cleanup

This commit is contained in:
Vladimir 'phcoder' Serbinenko 2011-05-13 18:03:20 +02:00
parent cdcfe2a95f
commit 96a29d188b
3 changed files with 76 additions and 61 deletions

View file

@ -61,9 +61,9 @@ iterate_rec (const char *prefix, const struct grub_arc_component *parent,
if (!cname)
cname = "unknown";
if (alt_names)
name = grub_xasprintf ("%s/%s%d", prefix, cname, comp->key);
name = grub_xasprintf ("%s/%s%lu", prefix, cname, comp->key);
else
name = grub_xasprintf ("%s%s(%d)", prefix, cname, comp->key);
name = grub_xasprintf ("%s%s(%lu)", prefix, cname, comp->key);
if (!name)
return 1;
if (hook (name, comp))