mirror of
https://git.savannah.gnu.org/git/grub.git
synced 2026-10-24 16:19:22 +00:00
definition fixes
This commit is contained in:
1 parent
937d332db3
commit
4996893238
4 files changed
+33
-88
No files matched your search
+5
-4
@@ -26,6 +26,7 @@
|
||||
#include <grub/file.h>
|
||||
#include <grub/env.h>
|
||||
#include <grub/command.h>
|
||||
#include <grub/search.h>
|
||||
|
||||
void
|
||||
FUNC_NAME (const char *key, const char *var, int no_floppy)
|
||||
@@ -153,9 +154,9 @@ grub_cmd_do_search (grub_command_t cmd __attribute__ ((unused)), int argc,
|
||||
|
||||
static grub_command_t cmd;
|
||||
|
||||
#ifdef SEARCH_FILE
|
||||
#ifdef DO_SEARCH_FILE
|
||||
GRUB_MOD_INIT(search_file)
|
||||
#elif defined (SEARCH_FS_UUID)
|
||||
#elif defined (DO_SEARCH_FS_UUID)
|
||||
GRUB_MOD_INIT(search_fs_uuid)
|
||||
#else
|
||||
GRUB_MOD_INIT(search_fs_label)
|
||||
@@ -169,9 +170,9 @@ GRUB_MOD_INIT(search_fs_label)
|
||||
" set to a variable.");
|
||||
}
|
||||
|
||||
#ifdef SEARCH_FILE
|
||||
#ifdef DO_SEARCH_FILE
|
||||
GRUB_MOD_FINI(search_file)
|
||||
#elif defined (SEARCH_FS_UUID)
|
||||
#elif defined (DO_SEARCH_FS_UUID)
|
||||
GRUB_MOD_FINI(search_fs_uuid)
|
||||
#else
|
||||
GRUB_MOD_FINI(search_fs_label)
|
||||
|
||||
@@ -24,6 +24,7 @@
|
||||
#include <grub/dl.h>
|
||||
#include <grub/env.h>
|
||||
#include <grub/extcmd.h>
|
||||
#include <grub/search.h>
|
||||
|
||||
static const struct grub_arg_option options[] =
|
||||
{
|
||||
@@ -44,10 +45,6 @@ enum options
|
||||
SEARCH_NO_FLOPPY,
|
||||
};
|
||||
|
||||
void grub_search_fs_file (const char *key, const char *var, int no_floppy);
|
||||
void grub_search_fs_uuid (const char *key, const char *var, int no_floppy);
|
||||
void grub_search_label (const char *key, const char *var, int no_floppy);
|
||||
|
||||
static grub_err_t
|
||||
grub_cmd_search (grub_extcmd_t cmd, int argc, char **args)
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user