]> wimlib.net Git - wimlib/commitdiff
metadata.h: Parenthesize 'imd' argument to macros
authorEric Biggers <ebiggers3@gmail.com>
Sun, 18 May 2014 20:33:53 +0000 (15:33 -0500)
committerEric Biggers <ebiggers3@gmail.com>
Sun, 18 May 2014 20:34:07 +0000 (15:34 -0500)
include/wimlib/metadata.h

index c262148d0fab24427248ca304db91553e66d64e2..680de0c93e6289637cbd1e54c5606b1fc549a0c9 100644 (file)
@@ -72,16 +72,16 @@ wim_get_current_security_data(WIMStruct *wim)
 
 /* Iterate over each inode in a WIM image that has not yet been hashed */
 #define image_for_each_inode(inode, imd) \
-       list_for_each_entry(inode, &imd->inode_list, i_list)
+       list_for_each_entry(inode, &(imd)->inode_list, i_list)
 
 /* Iterate over each stream in a WIM image that has not yet been hashed */
 #define image_for_each_unhashed_stream(lte, imd) \
-       list_for_each_entry(lte, &imd->unhashed_streams, unhashed_list)
+       list_for_each_entry(lte, &(imd)->unhashed_streams, unhashed_list)
 
 /* Iterate over each stream in a WIM image that has not yet been hashed (safe
  * against stream removal) */
 #define image_for_each_unhashed_stream_safe(lte, tmp, imd) \
-       list_for_each_entry_safe(lte, tmp, &imd->unhashed_streams, unhashed_list)
+       list_for_each_entry_safe(lte, tmp, &(imd)->unhashed_streams, unhashed_list)
 
 extern void
 put_image_metadata(struct wim_image_metadata *imd,