[syslinux:master] gfxboot: remove lowmem_buf_size variable

syslinux-bot for Sebastian Herbszt herbszt at gmx.de
Fri Apr 1 13:09:06 PDT 2011


Commit-ID:  d719172f79ad0f577cfc115b101820999914ba46
Gitweb:     http://syslinux.zytor.com/commit/d719172f79ad0f577cfc115b101820999914ba46
Author:     Sebastian Herbszt <herbszt at gmx.de>
AuthorDate: Wed, 30 Mar 2011 22:57:55 +0200
Committer:  Sebastian Herbszt <herbszt at gmx.de>
CommitDate: Wed, 30 Mar 2011 22:57:55 +0200

gfxboot: remove lowmem_buf_size variable

Remove the no longer needed lowmem_buf_size variable.

Signed-off-by: Sebastian Herbszt <herbszt at gmx.de>


---
 com32/gfxboot/gfxboot.c |    7 ++-----
 1 files changed, 2 insertions(+), 5 deletions(-)

diff --git a/com32/gfxboot/gfxboot.c b/com32/gfxboot/gfxboot.c
index ae0b7b9..37651fa 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;
 



More information about the Syslinux-commits mailing list