]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
* grub-core/normal/cmdline.c (grub_history_get): Make argument into
authorVladimir Serbinenko <phcoder@gmail.com>
Fri, 25 Oct 2013 20:58:19 +0000 (22:58 +0200)
committerVladimir Serbinenko <phcoder@gmail.com>
Fri, 25 Oct 2013 20:58:19 +0000 (22:58 +0200)
unsigned.
(grub_history_replace): Likewise.

ChangeLog
grub-core/normal/cmdline.c

index 2cc67a772d96868aa34249fd5666667f90f44228..b4b30ef73c215ebc0ba360088842e9dae4c64c09 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2013-10-25  Vladimir Serbinenko  <phcoder@gmail.com>
+
+       * grub-core/normal/cmdline.c (grub_history_get): Make argument into
+       unsigned.
+       (grub_history_replace): Likewise.
+
 2013-10-25  Vladimir Serbinenko  <phcoder@gmail.com>
 
        * grub-core/disk/raid6_recover.c: Use unsigned arithmetics when
index 03e84d5d46ba236efdd6d1a355cbdedda74af66c..f7cd115d7cb148e271f56454deda88848f09c61b 100644 (file)
@@ -92,7 +92,7 @@ grub_set_history (int newsize)
 /* Get the entry POS from the history where `0' is the newest
    entry.  */
 static grub_uint32_t *
-grub_history_get (int pos)
+grub_history_get (unsigned pos)
 {
   pos = (hist_pos + pos) % hist_size;
   return hist_lines[pos];
@@ -154,7 +154,7 @@ grub_history_add (grub_uint32_t *s, grub_size_t len)
 
 /* Replace the history entry on position POS with the string S.  */
 static void
-grub_history_replace (int pos, grub_uint32_t *s, grub_size_t len)
+grub_history_replace (unsigned pos, grub_uint32_t *s, grub_size_t len)
 {
   grub_history_set ((hist_pos + pos) % hist_size, s, len);
 }