nalika / rpms / grub2

Forked from rpms/grub2 2 years ago
Clone
8631a2
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
8631a2
From: William Jon McCann <william.jon.mccann@gmail.com>
8631a2
Date: Wed, 15 May 2013 13:53:48 -0400
8631a2
Subject: [PATCH] Don't print GNU GRUB header
8631a2
8631a2
No one cares.
8631a2
---
8631a2
 grub-core/normal/main.c | 8 +++++---
8631a2
 1 file changed, 5 insertions(+), 3 deletions(-)
8631a2
8631a2
diff --git a/grub-core/normal/main.c b/grub-core/normal/main.c
f6e916
index b2654ef62..f57b7508a 100644
8631a2
--- a/grub-core/normal/main.c
8631a2
+++ b/grub-core/normal/main.c
8631a2
@@ -202,15 +202,16 @@ read_config_file (const char *config)
8631a2
 /* Initialize the screen.  */
8631a2
 void
8631a2
 grub_normal_init_page (struct grub_term_output *term,
8631a2
-		       int y)
8631a2
+		       int y __attribute__((__unused__)))
8631a2
 {
8631a2
+  grub_term_cls (term);
8631a2
+
8631a2
+#if 0
8631a2
   grub_ssize_t msg_len;
8631a2
   int posx;
8631a2
   char *msg_formatted;
8631a2
   grub_uint32_t *unicode_msg;
8631a2
   grub_uint32_t *last_position;
8631a2
- 
8631a2
-  grub_term_cls (term);
8631a2
 
8631a2
   msg_formatted = grub_xasprintf (_("GNU GRUB  version %s"), PACKAGE_VERSION);
8631a2
   if (!msg_formatted)
8631a2
@@ -235,6 +236,7 @@ grub_normal_init_page (struct grub_term_output *term,
8631a2
   grub_putcode ('\n', term);
8631a2
   grub_putcode ('\n', term);
8631a2
   grub_free (unicode_msg);
8631a2
+#endif
8631a2
 }
8631a2
 
8631a2
 static void