]> git.lizzy.rs Git - dragonstd.git/blobdiff - test/test_refcount_map.c
Style: no longer put space after unary operators
[dragonstd.git] / test / test_refcount_map.c
index 642f15b6bd799eb2f8de73db17ad80e2b765cb0b..c972ce5c250ebbeb99fc813c84801e9205387409 100644 (file)
@@ -44,7 +44,7 @@ int data_object_compare_id(const void *pa, const void *pb)
 
 static void *thread_create(unsigned int *result)
 {
-       while (! cancel) {
+       while (!cancel) {
                DataObject *obj = malloc(sizeof *obj);
                obj->id = rand_id();
 
@@ -65,7 +65,7 @@ static void *thread_access(unsigned int *result)
 {
        DataObject *objs[NUM_OBJS] = {NULL};
 
-       while (! cancel) {
+       while (!cancel) {
                int i = rand() % NUM_OBJS;
 
                if (objs[i]) {
@@ -73,7 +73,7 @@ static void *thread_access(unsigned int *result)
                        objs[i] = NULL;
                }
 
-               while (! objs[i] && ! cancel) {
+               while (!objs[i] && !cancel) {
                        int id = rand_id();
                        objs[i] = map_get(&map, &id, &data_object_compare_id, &refcount_grb);
                }
@@ -93,7 +93,7 @@ static void *thread_access(unsigned int *result)
 
 static void *thread_delete(unsigned int *result)
 {
-       while (! cancel) {
+       while (!cancel) {
                unsigned int id = rand_id();
 
                if (map_del(&map, &id, &data_object_compare_id, &refcount_drp))