Blame SOURCES/0028-grub-core-commands-macbless.c-Rename-FILE-and-DIR-to.patch

d41074
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
a85e8e
From: Vladimir Serbinenko <phcoder@gmail.com>
a85e8e
Date: Sat, 18 Jan 2014 19:26:40 +0100
d41074
Subject: [PATCH] * grub-core/commands/macbless.c: Rename FILE and DIR to avoid
d41074
 conflicts.
a85e8e
a85e8e
	Reported by: Andrey Borzenkov.
a85e8e
---
a85e8e
 grub-core/commands/macbless.c | 6 +++---
d41074
 ChangeLog                     | 7 +++++++
a85e8e
 2 files changed, 10 insertions(+), 3 deletions(-)
a85e8e
a85e8e
diff --git a/grub-core/commands/macbless.c b/grub-core/commands/macbless.c
d41074
index c5210833ed0..4724edd7709 100644
a85e8e
--- a/grub-core/commands/macbless.c
a85e8e
+++ b/grub-core/commands/macbless.c
a85e8e
@@ -37,7 +37,7 @@ struct find_node_context
a85e8e
   grub_uint64_t inode_found;
a85e8e
   char *dirname;
a85e8e
   enum
a85e8e
-  { NONE, FILE, DIR } found;
a85e8e
+  { FOUND_NONE, FOUND_FILE, FOUND_DIR } found;
a85e8e
 };
a85e8e
 
a85e8e
 static int
a85e8e
@@ -53,7 +53,7 @@ find_inode (const char *filename,
a85e8e
 	   && grub_strcasecmp (ctx->dirname, filename) == 0)))
a85e8e
     {
a85e8e
       ctx->inode_found = info->inode;
a85e8e
-      ctx->found = info->dir ? DIR : FILE;
a85e8e
+      ctx->found = info->dir ? FOUND_DIR : FOUND_FILE;
a85e8e
     }
a85e8e
   return 0;
a85e8e
 }
a85e8e
@@ -175,7 +175,7 @@ grub_mac_bless_file (grub_device_t dev, const char *path_in, int intel)
a85e8e
   grub_free (path);
a85e8e
 
a85e8e
   return grub_mac_bless_inode (dev, (grub_uint32_t) ctx.inode_found,
a85e8e
-			       (ctx.found == DIR), intel);
a85e8e
+			       (ctx.found == FOUND_DIR), intel);
a85e8e
 }
a85e8e
 
a85e8e
 static grub_err_t
d41074
diff --git a/ChangeLog b/ChangeLog
d41074
index dad469b43b1..9d1a3f051c1 100644
d41074
--- a/ChangeLog
d41074
+++ b/ChangeLog
d41074
@@ -1,3 +1,10 @@
d41074
+2014-01-18  Vladimir Serbinenko  <phcoder@gmail.com>
d41074
+
d41074
+	* grub-core/commands/macbless.c: Rename FILE and DIR to avoid
d41074
+	conflicts.
d41074
+
d41074
+	Reported by: Andrey Borzenkov.
d41074
+
d41074
 2014-01-18  Andrey Borzenkov <arvidjaar@gmail.com>
d41074
 
d41074
 	* include/grub/misc.h: Move macros for compiler features to ...