diff options
author | Lucas De Marchi <lucas.demarchi@profusion.mobi> | 2011-12-06 01:44:08 -0200 |
---|---|---|
committer | Lucas De Marchi <lucas.demarchi@profusion.mobi> | 2011-12-06 02:48:03 -0200 |
commit | d2d648dfafd7b661e16a3bf5f66b03c56abeb850 (patch) | |
tree | c8482dbfaa336398feefa7f6c5cafaf6ff1749af /libkmod/libkmod-private.h | |
parent | 7db08652cd569952631197e908cd78a11b1e1e03 (diff) | |
download | kmod-d2d648dfafd7b661e16a3bf5f66b03c56abeb850.tar.gz kmod-d2d648dfafd7b661e16a3bf5f66b03c56abeb850.tar.bz2 kmod-d2d648dfafd7b661e16a3bf5f66b03c56abeb850.zip |
Fix missing parenthesis in macro
Diffstat (limited to 'libkmod/libkmod-private.h')
-rw-r--r-- | libkmod/libkmod-private.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libkmod/libkmod-private.h b/libkmod/libkmod-private.h index aa9403a..69d52b7 100644 --- a/libkmod/libkmod-private.h +++ b/libkmod/libkmod-private.h @@ -55,9 +55,9 @@ struct kmod_list *kmod_list_remove_n_latest(struct kmod_list *list, unsigned int n) __must_check; #undef kmod_list_foreach #define kmod_list_foreach(list_entry, first_entry) \ - for (list_entry = ((first_entry) == NULL) ? NULL : first_entry; \ + for (list_entry = ((first_entry) == NULL) ? NULL : (first_entry); \ list_entry != NULL; \ - list_entry = (list_entry->node.next == &first_entry->node) ? NULL : \ + list_entry = (list_entry->node.next == &((first_entry)->node)) ? NULL : \ container_of(list_entry->node.next, struct kmod_list, node)) /* libkmod.c */ |