diff options
author | H. Peter Anvin <hpa@linux.intel.com> | 2010-06-23 16:31:45 -0700 |
---|---|---|
committer | H. Peter Anvin <hpa@linux.intel.com> | 2010-06-23 16:33:28 -0700 |
commit | 2e8b89f8b2d711a1689067834113483610fa18cd (patch) | |
tree | 76d4691a58d3f5aa0bf9ea2c49624b2744dd07d3 /linux | |
parent | 3ee5120d0795b361c3548e9bb13cadf33802f73a (diff) | |
download | syslinux-2e8b89f8b2d711a1689067834113483610fa18cd.tar.gz |
Move modify_adv() into common code
modify_adv() should be used by any installer which uses the common
CLI, so it should go into syslxopt.c.
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
Diffstat (limited to 'linux')
-rw-r--r-- | linux/syslinux.c | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/linux/syslinux.c b/linux/syslinux.c index ed65619f..70fadcd0 100644 --- a/linux/syslinux.c +++ b/linux/syslinux.c @@ -219,24 +219,6 @@ void do_umount(const char *mntpath, int cookie) } /* - * Make any user-specified ADV modifications - */ -int modify_adv(void) -{ - int rv = 0; - - if (opt.set_once) { - if (syslinux_setadv(ADV_BOOTONCE, strlen(opt.set_once), opt.set_once)) { - fprintf(stderr, "%s: not enough space for boot-once command\n", - program); - rv = -1; - } - } - - return rv; -} - -/* * Modify the ADV of an existing installation */ int modify_existing_adv(const char *path) |