]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
2004-04-29 Jeroen Dekkers <jeroen@dekkers.cx>
authorjeroen <jeroen@localhost>
Thu, 29 Apr 2004 09:57:09 +0000 (09:57 +0000)
committerjeroen <jeroen@localhost>
Thu, 29 Apr 2004 09:57:09 +0000 (09:57 +0000)
* 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.

ChangeLog
stage2/char_io.c
stage2/fsys_iso9660.c

index ba652d2d10afef564723fc9d7358487e409d7af6..717b2947582d6e6e60b2ecf40a96b683ddfc1d40 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2004-04-29  Jeroen Dekkers  <jeroen@dekkers.cx>
+
+       * 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  <chjones@aleph0.com>
 
        * docs/grub.texi (Making a GRUB bootable CD-ROM): minor edits,
index f07613ba80297456fc18a39afea86e3db54e9f9c..65629fcc19eb38addb2b67ff860f5a5e1b7b4205 100644 (file)
@@ -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)
 {
index d83feed28ab45c10ddd80c321bc5195157e4239c..90e4aa859d05785c462f5185dacde070fb55eac4 100644 (file)
@@ -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)
                    {