]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
* grub-core/normal/color.c (grub_env_write_color_normal): Fix a warning.
authorVladimir 'phcoder' Serbinenko <phcoder@gmail.com>
Sun, 29 Aug 2010 23:12:37 +0000 (01:12 +0200)
committerVladimir 'phcoder' Serbinenko <phcoder@gmail.com>
Sun, 29 Aug 2010 23:12:37 +0000 (01:12 +0200)
(grub_env_write_color_highlight): Likewise.

ChangeLog
grub-core/normal/color.c

index b59a6956959dcef402b2c8b23dd97b630ef21af5..1f7bbfa6c687cf2ce740ec9330b986609de499d3 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2010-08-30  Vladimir Serbinenko  <phcoder@gmail.com>
+
+       * grub-core/normal/color.c (grub_env_write_color_normal): Fix a warning.
+       (grub_env_write_color_highlight): Likewise.
+
 2010-08-30  Vladimir Serbinenko  <phcoder@gmail.com>
 
        * grub-core/normal/term.c (print_more): Return to normal and not
index a16d1c2f9febbeff353f3764c571ae38e6ea840a..2e6c80b94a0e009ea0fa727fcaa52033816f0fee 100644 (file)
@@ -125,10 +125,11 @@ set_colors (void)
 
 /* Replace default `normal' colors with the ones specified by user (if any).  */
 char *
-grub_env_write_color_normal (struct grub_env_var *var, const char *val)
+grub_env_write_color_normal (struct grub_env_var *var __attribute__ ((unused)),
+                            const char *val)
 {
   if (grub_parse_color_name_pair (&color_normal, val))
-    return 0;
+    return NULL;
 
   set_colors ();
 
@@ -137,10 +138,11 @@ grub_env_write_color_normal (struct grub_env_var *var, const char *val)
 
 /* Replace default `highlight' colors with the ones specified by user (if any).  */
 char *
-grub_env_write_color_highlight (struct grub_env_var *var, const char *val)
+grub_env_write_color_highlight (struct grub_env_var *var __attribute__ ((unused)),
+                               const char *val)
 {
   if (grub_parse_color_name_pair (&color_highlight, val))
-    return 0;
+    return NULL;
 
   set_colors ();