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

6b3c76
From c611b3a4ec67d3fd3886b9bb93ccc41a40de1955 Mon Sep 17 00:00:00 2001
a85e8e
From: Vladimir Serbinenko <phcoder@gmail.com>
a85e8e
Date: Sat, 18 Jan 2014 19:26:40 +0100
6b3c76
Subject: [PATCH 028/261] * grub-core/commands/macbless.c: Rename FILE and DIR
6b3c76
 to avoid conflicts.
a85e8e
a85e8e
	Reported by: Andrey Borzenkov.
a85e8e
---
d41074
 ChangeLog                     | 7 +++++++
6b3c76
 grub-core/commands/macbless.c | 6 +++---
a85e8e
 2 files changed, 10 insertions(+), 3 deletions(-)
a85e8e
6b3c76
diff --git a/ChangeLog b/ChangeLog
6b3c76
index dad469b43..9d1a3f051 100644
6b3c76
--- a/ChangeLog
6b3c76
+++ b/ChangeLog
6b3c76
@@ -1,3 +1,10 @@
6b3c76
+2014-01-18  Vladimir Serbinenko  <phcoder@gmail.com>
6b3c76
+
6b3c76
+	* grub-core/commands/macbless.c: Rename FILE and DIR to avoid
6b3c76
+	conflicts.
6b3c76
+
6b3c76
+	Reported by: Andrey Borzenkov.
6b3c76
+
6b3c76
 2014-01-18  Andrey Borzenkov <arvidjaar@gmail.com>
6b3c76
 
6b3c76
 	* include/grub/misc.h: Move macros for compiler features to ...
a85e8e
diff --git a/grub-core/commands/macbless.c b/grub-core/commands/macbless.c
6b3c76
index c5210833e..4724edd77 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
6b3c76
-- 
6b3c76
2.13.5
6b3c76