]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
* grub-core/term/terminfo.c (grub_terminfo_output_unregister):
authorVladimir 'phcoder' Serbinenko <phcoder@gmail.com>
Sun, 12 Feb 2012 18:16:49 +0000 (19:16 +0100)
committerVladimir 'phcoder' Serbinenko <phcoder@gmail.com>
Sun, 12 Feb 2012 18:16:49 +0000 (19:16 +0100)
Mark calling with invalid term as GRUB_ERR_BUG.

ChangeLog
grub-core/term/terminfo.c

index e927a455c840de0701840e4f99beb1f10c5f3f2a..8563c418f225fbf3d36d96e9dd29e1b8cce6e765 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2012-02-12  Vladimir Serbinenko  <phcoder@gmail.com>
+
+       * grub-core/term/terminfo.c (grub_terminfo_output_unregister):
+       Mark calling with invalid term as GRUB_ERR_BUG.
+
 2012-02-12  Vladimir Serbinenko  <phcoder@gmail.com>
 
        * grub-core/net/tftp.c (tftp_receive): Silently discard too short
index 5fb2d6dea36db8eab28470974345e64410bd756f..cee146fba6217a742a37fdcbe0a0a3fe4d393cd4 100644 (file)
@@ -205,7 +205,7 @@ grub_terminfo_output_unregister (struct grub_term_output *term)
        *ptr = ((struct grub_terminfo_output_state *) (*ptr)->data)->next;
        return GRUB_ERR_NONE;
       }
-  return grub_error (GRUB_ERR_BAD_ARGUMENT, "terminal not found");
+  return grub_error (GRUB_ERR_BUG, "terminal not found");
 }
 
 /* Wrapper for grub_putchar to write strings.  */