[syslinux:master] disklib: remove improper "inline"

syslinux-bot for H. Peter Anvin hpa at zytor.com
Sun Nov 14 13:15:17 PST 2010


Commit-ID:  9cc7b5988734fb4dcdc21f10c71bd58d89e2f41b
Gitweb:     http://syslinux.zytor.com/commit/9cc7b5988734fb4dcdc21f10c71bd58d89e2f41b
Author:     H. Peter Anvin <hpa at zytor.com>
AuthorDate: Sun, 14 Nov 2010 13:11:30 -0800
Committer:  H. Peter Anvin <hpa at zytor.com>
CommitDate: Sun, 14 Nov 2010 13:11:30 -0800

disklib: remove improper "inline"

Remove improper inlines from static functions which cause gcc 4.5 to
abort due to inlining failure.

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


---
 com32/gpllib/disk/msdos.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/com32/gpllib/disk/msdos.c b/com32/gpllib/disk/msdos.c
index affec43..a4ee60f 100644
--- a/com32/gpllib/disk/msdos.c
+++ b/com32/gpllib/disk/msdos.c
@@ -20,13 +20,13 @@
 #include <disk/partition.h>
 #include <disk/read.h>
 
-static inline int is_extended_partition(struct part_entry *ptab)
+static int is_extended_partition(struct part_entry *ptab)
 {
     return (ptab->ostype == 0x05 ||
 	    ptab->ostype == 0x0f || ptab->ostype == 0x85);
 }
 
-static inline int msdos_magic_present(const char *ptab)
+static int msdos_magic_present(const char *ptab)
 {
     return (*(uint16_t *) (ptab + 0x1fe) == 0xaa55);
 }



More information about the Syslinux-commits mailing list