|
|
a85e8e |
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
|
|
|
a85e8e |
Subject: [PATCH 028/260] * grub-core/commands/macbless.c: Rename FILE and DIR
|
|
|
a85e8e |
to avoid conflicts.
|
|
|
a85e8e |
|
|
|
a85e8e |
Reported by: Andrey Borzenkov.
|
|
|
a85e8e |
---
|
|
|
a85e8e |
ChangeLog | 7 +++++++
|
|
|
a85e8e |
grub-core/commands/macbless.c | 6 +++---
|
|
|
a85e8e |
2 files changed, 10 insertions(+), 3 deletions(-)
|
|
|
a85e8e |
|
|
|
a85e8e |
diff --git a/ChangeLog b/ChangeLog
|
|
|
a85e8e |
index dad469b43..9d1a3f051 100644
|
|
|
a85e8e |
--- a/ChangeLog
|
|
|
a85e8e |
+++ b/ChangeLog
|
|
|
a85e8e |
@@ -1,3 +1,10 @@
|
|
|
a85e8e |
+2014-01-18 Vladimir Serbinenko <phcoder@gmail.com>
|
|
|
a85e8e |
+
|
|
|
a85e8e |
+ * grub-core/commands/macbless.c: Rename FILE and DIR to avoid
|
|
|
a85e8e |
+ conflicts.
|
|
|
a85e8e |
+
|
|
|
a85e8e |
+ Reported by: Andrey Borzenkov.
|
|
|
a85e8e |
+
|
|
|
a85e8e |
2014-01-18 Andrey Borzenkov <arvidjaar@gmail.com>
|
|
|
a85e8e |
|
|
|
a85e8e |
* 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
|
|
|
a85e8e |
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
|
|
|
a85e8e |
--
|
|
|
a85e8e |
2.13.0
|
|
|
a85e8e |
|