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