Skip to contentSkip to conversation

[1870] 2008-09-22 Bean -- Missing function call?

DISCUSSION Christian Franke 2 participants 2 messages Sep 27, 2008 – Sep 28, 2008 1 message not in the archive

lore
Share & tools
lore
#1 lore raw
In reply to a message not in the archive
Quoted 16 lines · Bean

Revision: 1870

          http://svn.sv.gnu.org/viewvc/?view=rev&root=grub&revision=1870
Author:   bean
Date:     2008-09-22 04:18:57 +0000 (Mon, 22 Sep 2008)

Log Message:
-----------
2008-09-22 Bean <[email protected]>

* fs/ntfs.c (grub_ntfs_iterate_dir): Fix a rare case where $BITMAP is resident and in attribute list.

* include/grub/ntfs.h (BMP_LEN): Removed.

[...}

Review

Quoted 4 lines
(quoted diff) +3 -1
-	  if (read_data (at, cur_pos, bmp, 0, u32at (cur_pos, 0x28), 0, 0))
+          bitmap_len = ((is_resident) ? u32at (cur_pos, 0x10) :
+                        (cur_pos, 0x28));
+

Compiler warning "left-hand operand of comma expression has no effect" suggests that a function/macro call is missing:

          bitmap_len = ((is_resident) ? u32at (cur_pos, 0x10) :

- (cur_pos, 0x28));
+ u32at (cur_pos, 0x28));

Christian

#2 lore raw
Quoted 30 lines · Christian Franke
Quoted 20 lines · Bean

Revision: 1870

         http://svn.sv.gnu.org/viewvc/?view=rev&root=grub&revision=1870
Author:   bean
Date:     2008-09-22 04:18:57 +0000 (Mon, 22 Sep 2008)

Log Message:
-----------
2008-09-22 Bean <[email protected]>

* fs/ntfs.c (grub_ntfs_iterate_dir): Fix a rare case where $BITMAP
is
resident and in attribute list.

* include/grub/ntfs.h (BMP_LEN): Removed.

[...}
- if (read_data (at, cur_pos, bmp, 0, u32at (cur_pos, 0x28), 0,
0))

Review

Quoted 3 lines
(quoted diff) +3 -0
+          bitmap_len = ((is_resident) ? u32at (cur_pos, 0x10) :
+                        (cur_pos, 0x28));
+

Compiler warning "left-hand operand of comma expression has no effect" suggests that a function/macro call is missing:

         bitmap_len = ((is_resident) ? u32at (cur_pos, 0x10) :

Review

Quoted 2 lines
(quoted diff) +1 -1
-                        (cur_pos, 0x28));
+                        u32at (cur_pos, 0x28));

Hi,

Oh right, thanks for the catch. I'm fixing it now.

Signature · 1 line
Bean