Use "error-checking" mutexes in place of other kinds wherever possible.
[sliver-openvswitch.git] / ofproto / ofproto-dpif-sflow.c
index 44ad927..158887f 100644 (file)
@@ -318,7 +318,7 @@ dpif_sflow_create(void)
     struct dpif_sflow *ds;
 
     if (ovsthread_once_start(&once)) {
-        ovs_mutex_init(&mutex, PTHREAD_MUTEX_RECURSIVE);
+        ovs_mutex_init_recursive(&mutex);
         ovsthread_once_done(&once);
     }