diff options
author | Alex Wang <alexw@nicira.com> | 2013-08-08 15:14:20 -0700 |
---|---|---|
committer | Ben Pfaff <blp@nicira.com> | 2013-08-09 13:48:11 -0700 |
commit | 344e21d47ecfe342fc5c3c8f32020d7a43089301 (patch) | |
tree | 5e32f4c54bc66b1de97a7a944cdadfcd3d535e0c /lib/lacp.c | |
parent | bd3950ddfa5cf54d79feb332782d66d27c86090f (diff) |
clang: Pass objects, not their addresses, to thread-safety macros.
This commit changes the code such that arguments to thread-safety
macros are not ampersanded.
Signed-off-by: Alex Wang <alexw@nicira.com>
Signed-off-by: Ben Pfaff <blp@nicira.com>
Diffstat (limited to 'lib/lacp.c')
-rw-r--r-- | lib/lacp.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -778,7 +778,7 @@ info_tx_equal(struct lacp_info *a, struct lacp_info *b) } static struct lacp * -lacp_find(const char *name) OVS_REQUIRES(&mutex) +lacp_find(const char *name) OVS_REQUIRES(mutex) { struct lacp *lacp; @@ -828,7 +828,7 @@ ds_put_lacp_state(struct ds *ds, uint8_t state) } static void -lacp_print_details(struct ds *ds, struct lacp *lacp) OVS_REQUIRES(&mutex) +lacp_print_details(struct ds *ds, struct lacp *lacp) OVS_REQUIRES(mutex) { struct shash slave_shash = SHASH_INITIALIZER(&slave_shash); const struct shash_node **sorted_slaves = NULL; |