nalika / rpms / grub2

Forked from rpms/grub2 2 years ago
Clone

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

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