aboutsummaryrefslogtreecommitdiffstats
path: root/com32/gfxboot
diff options
context:
space:
mode:
authorSebastian Herbszt <herbszt@gmx.de>2011-03-30 22:57:55 +0200
committerSebastian Herbszt <herbszt@gmx.de>2011-03-30 22:57:55 +0200
commitd719172f79ad0f577cfc115b101820999914ba46 (patch)
tree2dc86cfefd009aa687edbc74db4a6f274187124a /com32/gfxboot
parent02e22ea834c6af3a220c652de6fc31cdccc60916 (diff)
downloadsyslinux-d719172f79ad0f577cfc115b101820999914ba46.tar.gz
syslinux-d719172f79ad0f577cfc115b101820999914ba46.tar.xz
syslinux-d719172f79ad0f577cfc115b101820999914ba46.zip
gfxboot: remove lowmem_buf_size variable
Remove the no longer needed lowmem_buf_size variable. Signed-off-by: Sebastian Herbszt <herbszt@gmx.de>
Diffstat (limited to 'com32/gfxboot')
-rw-r--r--com32/gfxboot/gfxboot.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/com32/gfxboot/gfxboot.c b/com32/gfxboot/gfxboot.c
index ae0b7b9b..37651fa3 100644
--- a/com32/gfxboot/gfxboot.c
+++ b/com32/gfxboot/gfxboot.c
@@ -146,7 +146,6 @@ struct {
} gfx;
void *lowmem_buf;
-unsigned lowmem_buf_size;
int timeout;
@@ -195,8 +194,6 @@ int main(int argc, char **argv)
return 1;
}
- lowmem_buf_size = LOWMEM_BUF_SIZE;
-
sdi = syslinux_derivative_info();
gfx_config.sector_shift = sdi->disk.sector_shift;
@@ -217,7 +214,7 @@ int main(int argc, char **argv)
gfx_config.sysconfig_size = sizeof gfx_config;
gfx_config.bootloader_seg = 0; // apparently not needed
- save_buf_size = lowmem_buf_size;
+ save_buf_size = LOWMEM_BUF_SIZE;
save_buf = malloc(save_buf_size);
if(argc < 2) {
@@ -539,7 +536,7 @@ int gfx_init(char *file)
unsigned code_start, code_size, file_start, file_len, u;
com32sys_t r;
void *lowmem = lowmem_buf;
- unsigned lowmem_size = lowmem_buf_size;
+ unsigned lowmem_size = LOWMEM_BUF_SIZE;
progress_active = 0;