2008-07-02 Pavel Roskin <proski@gnu.org>
* util/grub-editenv.c (main): Be specific which parameter is missing.
This commit is contained in:
parent
b8fbce0ab9
commit
cbabfdd464
2 changed files with 10 additions and 1 deletions
|
@ -1,5 +1,8 @@
|
|||
2008-07-02 Pavel Roskin <proski@gnu.org>
|
||||
|
||||
* util/grub-editenv.c (main): Be specific which parameter is
|
||||
missing.
|
||||
|
||||
* disk/memdisk.c (memdisk_addr): Make a pointer to fix warnings.
|
||||
(memdisk): Make memdisk_orig_addr a pointer.
|
||||
|
||||
|
|
|
@ -226,9 +226,15 @@ main (int argc, char *argv[])
|
|||
}
|
||||
|
||||
/* Obtain PATH. */
|
||||
if (optind >= argc)
|
||||
{
|
||||
fprintf (stderr, "Filename not specified.\n");
|
||||
usage (1);
|
||||
}
|
||||
|
||||
if (optind + 1 >= argc)
|
||||
{
|
||||
fprintf (stderr, "Not enough parameter.\n");
|
||||
fprintf (stderr, "Command not specified.\n");
|
||||
usage (1);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue