Fix few compile errors

This commit is contained in:
Vladimir 'phcoder' Serbinenko 2010-09-11 22:18:06 +02:00
parent 122a9b2cd9
commit 09695ab80c
2 changed files with 5 additions and 2 deletions

View file

@ -0,0 +1,3 @@
[NAME]
grub-menulst2cfg \- transform legacy menu.lst into grub.cfg

View file

@ -31,7 +31,7 @@ main (int argc, char **argv)
if (argc >= 2 && argv[1][0] == '-')
{
fprintf (stderr, "Usage: %s [INFILE [OUTFILE]]\n", argv[0]);
fprintf (stdout, "Usage: %s [INFILE [OUTFILE]]\n", argv[0]);
return 0;
}
@ -79,7 +79,7 @@ main (int argc, char **argv)
fprintf (out, "}\n\n");
if (oldname != entryname)
fprintf (out, "menuentry \'%s\' {\n",
grub_legacy_escape (entryname, grub_strlen (entryname)));
grub_legacy_escape (entryname, strlen (entryname)));
}
if (parsed)