Blame SOURCES/0265-util-grub-mkfont.c-Prefer-enum-to-define.patch

f96e0b
From 79cd77365b72e4fc4131b1b2f87b10875536495f Mon Sep 17 00:00:00 2001
f96e0b
From: Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>
f96e0b
Date: Fri, 5 Apr 2013 11:13:37 +0200
f96e0b
Subject: [PATCH 265/482] 	* util/grub-mkfont.c: Prefer enum to #define.
f96e0b
f96e0b
---
f96e0b
 ChangeLog          |  4 ++++
f96e0b
 util/grub-mkfont.c | 11 +++++++----
f96e0b
 2 files changed, 11 insertions(+), 4 deletions(-)
f96e0b
f96e0b
diff --git a/ChangeLog b/ChangeLog
f96e0b
index f90fab4..41370a1 100644
f96e0b
--- a/ChangeLog
f96e0b
+++ b/ChangeLog
f96e0b
@@ -1,5 +1,9 @@
f96e0b
 2013-04-05  Vladimir Serbinenko  <phcoder@gmail.com>
f96e0b
 
f96e0b
+	* util/grub-mkfont.c: Prefer enum to #define.
f96e0b
+
f96e0b
+2013-04-05  Vladimir Serbinenko  <phcoder@gmail.com>
f96e0b
+
f96e0b
 	* grub-core/commands/acpi.c: Use sizeof rather than hardcoding the size.
f96e0b
 
f96e0b
 2013-04-05  Vladimir Serbinenko  <phcoder@gmail.com>
f96e0b
diff --git a/util/grub-mkfont.c b/util/grub-mkfont.c
f96e0b
index 83fb2d2..0343fd2 100644
f96e0b
--- a/util/grub-mkfont.c
f96e0b
+++ b/util/grub-mkfont.c
f96e0b
@@ -73,10 +73,13 @@ enum file_formats
f96e0b
   WIDTH_SPEC
f96e0b
 };
f96e0b
 
f96e0b
-#define GRUB_FONT_FLAG_BOLD		1
f96e0b
-#define GRUB_FONT_FLAG_NOBITMAP		2
f96e0b
-#define GRUB_FONT_FLAG_NOHINTING	4
f96e0b
-#define GRUB_FONT_FLAG_FORCEHINT	8
f96e0b
+enum
f96e0b
+  {
f96e0b
+    GRUB_FONT_FLAG_BOLD	= 1,
f96e0b
+    GRUB_FONT_FLAG_NOBITMAP = 2,
f96e0b
+    GRUB_FONT_FLAG_NOHINTING = 4,
f96e0b
+    GRUB_FONT_FLAG_FORCEHINT = 8
f96e0b
+  };
f96e0b
 
f96e0b
 struct grub_font_info
f96e0b
 {
f96e0b
-- 
f96e0b
1.8.2.1
f96e0b