aboutsummaryrefslogtreecommitdiff
path: root/lib/cfm.c
diff options
context:
space:
mode:
authorAlex Wang <alexw@nicira.com>2013-08-08 15:14:20 -0700
committerBen Pfaff <blp@nicira.com>2013-08-09 13:48:11 -0700
commit344e21d47ecfe342fc5c3c8f32020d7a43089301 (patch)
tree5e32f4c54bc66b1de97a7a944cdadfcd3d535e0c /lib/cfm.c
parentbd3950ddfa5cf54d79feb332782d66d27c86090f (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.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/cfm.c b/lib/cfm.c
index 838b8b1d..a238c67a 100644
--- a/lib/cfm.c
+++ b/lib/cfm.c
@@ -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;