summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2009-04-28 22:03:30 -0700
committerH. Peter Anvin <hpa@zytor.com>2009-04-28 22:03:30 -0700
commit95cbcc17daf68855198b5a67b6e4795bf97f3f5f (patch)
treea3339abf08816d5babde83120f29bbea376f0065
parentf282a4a81dd2ec57eac25eeab5d225df69dc903e (diff)
downloadsyslinux-95cbcc17daf68855198b5a67b6e4795bf97f3f5f.tar.gz
shuffle_pm: remove unused variables and includes
Remove unused variables and #include statements from syslinux_shuffle_boot_pm(). Signed-off-by: H. Peter Anvin <hpa@zytor.com>
-rw-r--r--com32/lib/syslinux/shuffle_pm.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/com32/lib/syslinux/shuffle_pm.c b/com32/lib/syslinux/shuffle_pm.c
index 69847639..cf250bb4 100644
--- a/com32/lib/syslinux/shuffle_pm.c
+++ b/com32/lib/syslinux/shuffle_pm.c
@@ -32,10 +32,7 @@
* Shuffle and boot to protected mode code
*/
-#include <stdlib.h>
#include <inttypes.h>
-#include <com32.h>
-#include <string.h>
#include <syslinux/movebits.h>
#include <syslinux/bootpm.h>
@@ -44,14 +41,11 @@ int syslinux_shuffle_boot_pm(struct syslinux_movelist *fraglist,
uint16_t bootflags,
struct syslinux_pm_regs *regs)
{
- int nd;
- com32sys_t ireg;
- char *regbuf;
uint8_t handoff_code[9*5], *p;
const uint32_t *rp;
int i, rv;
struct syslinux_memmap *tmap;
- addr_t regstub, stublen, safe;
+ addr_t regstub, stublen;
tmap = syslinux_target_memmap(fraglist, memmap);
if (!tmap)