diff --git a/ChangeLog b/ChangeLog index ba652d2d1..717b29475 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +2004-04-29 Jeroen Dekkers + + * stage2/char_io.c (grub_memcmp): Define for stage1.5 too. + + * stage2/fsys_iso9660.c (iso9660_mount): Use memcmp() instead of + __builtin_memcmp(). + (iso9660_dir): Likewise. + 2004-04-26 Christian Jones * docs/grub.texi (Making a GRUB bootable CD-ROM): minor edits, diff --git a/stage2/char_io.c b/stage2/char_io.c index f07613ba8..65629fcc1 100644 --- a/stage2/char_io.c +++ b/stage2/char_io.c @@ -1,7 +1,7 @@ /* char_io.c - basic console input and output */ /* * GRUB -- GRand Unified Bootloader - * Copyright (C) 1999,2000,2001,2002 Free Software Foundation, Inc. + * Copyright (C) 1999,2000,2001,2002,2004 Free Software Foundation, Inc. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -921,7 +921,6 @@ grub_isspace (int c) return 0; } -#ifndef STAGE1_5 int grub_memcmp (const char *s1, const char *s2, int n) { @@ -939,6 +938,7 @@ grub_memcmp (const char *s1, const char *s2, int n) return 0; } +#ifndef STAGE1_5 int grub_strncat (char *s1, const char *s2, int n) { diff --git a/stage2/fsys_iso9660.c b/stage2/fsys_iso9660.c index d83feed28..90e4aa859 100644 --- a/stage2/fsys_iso9660.c +++ b/stage2/fsys_iso9660.c @@ -120,7 +120,7 @@ iso9660_mount (void) break; /* check ISO_VD_PRIMARY and ISO_STANDARD_ID */ if (PRIMDESC->type.l == ISO_VD_PRIMARY - && !__builtin_memcmp(PRIMDESC->id, ISO_STANDARD_ID, sizeof(PRIMDESC->id))) + && !memcmp(PRIMDESC->id, ISO_STANDARD_ID, sizeof(PRIMDESC->id))) { ISO_SUPER->vol_sector = sector; INODE->file_start = 0; @@ -344,7 +344,7 @@ iso9660_dir (char *dirname) filemax = MAXINT; if (name_len >= pathlen - && !__builtin_memcmp(name, dirname, pathlen)) + && !memcmp(name, dirname, pathlen)) { if (dirname[pathlen] == '/' || !print_possibilities) {