[syslinux:master] disk/bootloaders.c: fix bogus const in get_bootloader_string()

syslinux-bot for H. Peter Anvin hpa at zytor.com
Sun Jan 10 13:24:06 PST 2010


Commit-ID:  f15e98672b78b204356585ea3645bcea414c41b1
Gitweb:     http://syslinux.zytor.com/commit/f15e98672b78b204356585ea3645bcea414c41b1
Author:     H. Peter Anvin <hpa at zytor.com>
AuthorDate: Sun, 10 Jan 2010 13:14:59 -0800
Committer:  H. Peter Anvin <hpa at zytor.com>
CommitDate: Sun, 10 Jan 2010 13:14:59 -0800

disk/bootloaders.c: fix bogus const in get_bootloader_string()

get_bootloader_string() takes a mutable first argument; the call chain
does have call paths on which this argument will be modified.

Signed-off-by: H. Peter Anvin <hpa at zytor.com>


---
 com32/gplinclude/disk/bootloaders.h |    2 +-
 com32/gpllib/disk/bootloaders.c     |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/com32/gplinclude/disk/bootloaders.h b/com32/gplinclude/disk/bootloaders.h
index 5a6ff9d..56a0f4e 100644
--- a/com32/gplinclude/disk/bootloaders.h
+++ b/com32/gplinclude/disk/bootloaders.h
@@ -14,6 +14,6 @@
 #include <disk/geom.h>
 #include <disk/partition.h>
 
-int get_bootloader_string(const struct driveinfo *, const struct part_entry *,
+int get_bootloader_string(struct driveinfo *, const struct part_entry *,
 			  char *, const int);
 #endif /* __BOOTLOADERS_H_ */
diff --git a/com32/gpllib/disk/bootloaders.c b/com32/gpllib/disk/bootloaders.c
index 29aecbd..188dd64 100644
--- a/com32/gpllib/disk/bootloaders.c
+++ b/com32/gpllib/disk/bootloaders.c
@@ -22,7 +22,7 @@
  * @buffer:		pre-allocated buffer
  * @buffer_size:	@buffer size
  **/
-int get_bootloader_string(const struct driveinfo *d, const struct part_entry *p,
+int get_bootloader_string(struct driveinfo *d, const struct part_entry *p,
 			  char *buffer, const int buffer_size)
 {
     char boot_sector[SECTOR * sizeof(char)];



More information about the Syslinux-commits mailing list