diff options
author | H. Peter Anvin <hpa@linux.intel.com> | 2011-05-27 17:45:59 -0700 |
---|---|---|
committer | H. Peter Anvin <hpa@linux.intel.com> | 2011-05-27 17:45:59 -0700 |
commit | ba4fefa9b52b25ca1babd77066e21abef19518c2 (patch) | |
tree | e9fd8beb864dc03b9d202add547e16406b9f6497 /core/fs/fs.c | |
parent | a9af8932758ab714e632cfbb65a45c38cac0bd67 (diff) | |
download | syslinux-ba4fefa9b52b25ca1babd77066e21abef19518c2.tar.gz |
core: change load_config() to open_config()
Change load_config() to open_config(), which is a method that works
just like open_file(). This we can use to get the original
configuration file.
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
Diffstat (limited to 'core/fs/fs.c')
-rw-r--r-- | core/fs/fs.c | 15 |
1 files changed, 4 insertions, 11 deletions
diff --git a/core/fs/fs.c b/core/fs/fs.c index ad2fb370..39ba09eb 100644 --- a/core/fs/fs.c +++ b/core/fs/fs.c @@ -2,6 +2,7 @@ #include <stdbool.h> #include <string.h> #include <dprintf.h> +#include "core.h" #include "fs.h" #include "cache.h" @@ -74,19 +75,11 @@ void _close_file(struct file *file) } /* - * Convert between a 16-bit file handle and a file structure + * Find and open the configuration file */ - -void pm_load_config(com32sys_t *regs) +int open_config(struct com32_filedata *filedata) { - int err; - - err = this_fs->fs_ops->load_config(); - - if (err) - printf("ERROR: No configuration file found\n"); - - set_flags(regs, err ? EFLAGS_ZF : 0); + return this_fs->fs_ops->open_config(filedata); } void pm_mangle_name(com32sys_t *regs) |