* grub-core/normal/cmdline.c (grub_history_get): Make argument into
unsigned. (grub_history_replace): Likewise.
This commit is contained in:
parent
428295739e
commit
0a7e52b2ed
2 changed files with 8 additions and 2 deletions
|
@ -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
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue