* grub-core/fs/bfs.c (iterate_in_b_tree): Add missing NESTED_FUNC_ATTR.

(grub_bfs_dir): Likewise.
This commit is contained in:
Vladimir 'phcoder' Serbinenko 2012-05-27 15:31:54 +02:00
parent 2787ae53d6
commit 9da59c3275
2 changed files with 8 additions and 3 deletions

View file

@ -1,3 +1,8 @@
2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
* grub-core/fs/bfs.c (iterate_in_b_tree): Add missing NESTED_FUNC_ATTR.
(grub_bfs_dir): Likewise.
2012-05-27 Peter Jones <pjones@redhat.com>
The old code gives arguments to a printf function which can't work

View file

@ -413,7 +413,7 @@ static int
iterate_in_b_tree (grub_disk_t disk,
const struct grub_bfs_superblock *sb,
const struct grub_bfs_inode *ino,
int (*hook) (const char *name, grub_uint64_t value))
int NESTED_FUNC_ATTR (*hook) (const char *name, grub_uint64_t value))
{
struct grub_bfs_btree_header head;
grub_err_t err;
@ -851,9 +851,9 @@ grub_bfs_dir (grub_device_t device, const char *path,
{
struct grub_bfs_superblock sb;
grub_err_t err;
auto int hook (const char *name, grub_uint64_t value);
auto int NESTED_FUNC_ATTR hook (const char *name, grub_uint64_t value);
int hook (const char *name, grub_uint64_t value)
int NESTED_FUNC_ATTR hook (const char *name, grub_uint64_t value)
{
grub_err_t err2;
union