aboutsummaryrefslogtreecommitdiffstats
path: root/extlinux
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 /extlinux
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>
Diffstat (limited to 'extlinux')
-rw-r--r--extlinux/main.c2
1 files changed, 1 insertions, 1 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;