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/cfm.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/cfm.c')
-rw-r--r-- | lib/cfm.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -866,7 +866,7 @@ cfm_get_remote_mpids(const struct cfm *cfm, uint64_t **rmps, size_t *n_rmps) } static struct cfm * -cfm_find(const char *name) OVS_REQUIRES(&mutex) +cfm_find(const char *name) OVS_REQUIRES(mutex) { struct cfm *cfm; @@ -879,7 +879,7 @@ cfm_find(const char *name) OVS_REQUIRES(&mutex) } static void -cfm_print_details(struct ds *ds, const struct cfm *cfm) OVS_REQUIRES(&mutex) +cfm_print_details(struct ds *ds, const struct cfm *cfm) OVS_REQUIRES(mutex) { struct remote_mp *rmp; bool extended; |