Add default memory allocation and free functions for HSIterator and some other tiny...
[c11tester.git] / test / linuxrwlocks.c
index ac2fe521a36f77bcc7eb523d2c0254d1396f6b6a..3d075aa8e04a4d34673e38e119bc9630f96c30b6 100644 (file)
@@ -1,8 +1,8 @@
 #include <stdio.h>
-
 #include <threads.h>
+#include <stdatomic.h>
+
 #include "librace.h"
-#include "stdatomic.h"
 
 #define RW_LOCK_BIAS            0x00100000
 #define WRITE_LOCK_CMP          RW_LOCK_BIAS
@@ -84,7 +84,7 @@ int shareddata;
 static void a(void *obj)
 {
        int i;
-       for(i = 0; i < 2; i++) {
+       for(i = 0;i < 2;i++) {
                if ((i % 2) == 0) {
                        read_lock(&mylock);
                        load_32(&shareddata);