aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@linux.intel.com>2010-06-15 16:26:14 -0700
committerH. Peter Anvin <hpa@linux.intel.com>2010-06-15 16:26:14 -0700
commit66f58cb7dc6818aa45974231b90424281311658f (patch)
tree2a1e13d90a5aaa18e9bca1f9f46b84a87b83879a
parentcbc69de20a19cbac90372fd7cbdaac00d1bbfa11 (diff)
downloadsyslinux-66f58cb7dc6818aa45974231b90424281311658f.tar.gz
syslinux-66f58cb7dc6818aa45974231b90424281311658f.tar.xz
syslinux-66f58cb7dc6818aa45974231b90424281311658f.zip
Fix prototype for generate_extents
Add missing const Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
-rw-r--r--extlinux/main.c2
-rw-r--r--libinstaller/syslxmod.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/extlinux/main.c b/extlinux/main.c
index aa226fe9..c3de190b 100644
--- a/extlinux/main.c
+++ b/extlinux/main.c
@@ -198,7 +198,7 @@ int get_geometry(int devfd, uint64_t totalbytes, struct hd_geometry *geo)
* Generate sector extents
*/
static void generate_extents(struct syslinux_extent *ex, int nptrs,
- sector_t *sectp, int nsect)
+ const sector_t *sectp, int nsect)
{
uint32_t addr = 0x7c00 + 2*SECTOR_SIZE;
uint32_t base;
diff --git a/libinstaller/syslxmod.c b/libinstaller/syslxmod.c
index 6df753f6..bc75ecf0 100644
--- a/libinstaller/syslxmod.c
+++ b/libinstaller/syslxmod.c
@@ -244,7 +244,7 @@ static __noinline void set_64_sl(uint64_t * p, uint64_t v)
* Generate sector extents
*/
static void generate_extents(struct syslinux_extent *ex, int nptrs,
- sector_t *sectp, int nsect)
+ const sector_t *sectp, int nsect)
{
uint32_t addr = 0x7c00 + 2*SECTOR_SIZE;
uint32_t base;