aboutsummaryrefslogtreecommitdiffstats
path: root/linux
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@linux.intel.com>2010-06-23 16:31:45 -0700
committerH. Peter Anvin <hpa@linux.intel.com>2010-06-23 16:33:28 -0700
commit2e8b89f8b2d711a1689067834113483610fa18cd (patch)
tree76d4691a58d3f5aa0bf9ea2c49624b2744dd07d3 /linux
parent3ee5120d0795b361c3548e9bb13cadf33802f73a (diff)
downloadsyslinux-2e8b89f8b2d711a1689067834113483610fa18cd.tar.gz
syslinux-2e8b89f8b2d711a1689067834113483610fa18cd.tar.xz
syslinux-2e8b89f8b2d711a1689067834113483610fa18cd.zip
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.c18
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)