diff --git a/src/engine.c b/src/engine.c
index 5e9726fa8ab072648cf504c71f4642aaefa90803..f3ad83eb0c69e074d2aaf5aab51e05425db744a7 100644
--- a/src/engine.c
+++ b/src/engine.c
@@ -3746,21 +3746,21 @@ void engine_marktasks_mapper(void *map_data, int num_elements,
       /* Activate the send/recv tasks. */
       if (ci->nodeID != engine_rank) {
 
-	/* If the foreign cell is active, we want its ti_end values. */
-	if (ci_active_gravity) scheduler_activate(s, ci->recv_ti);
+        /* If the foreign cell is active, we want its ti_end values. */
+        if (ci_active_gravity) scheduler_activate(s, ci->recv_ti);
 
-          /* If the local cell is active, send its ti_end values. */
-          if (cj_active_gravity)
-            scheduler_activate_send(s, cj->send_ti, ci->nodeID);
+        /* If the local cell is active, send its ti_end values. */
+        if (cj_active_gravity)
+          scheduler_activate_send(s, cj->send_ti, ci->nodeID);
 
       } else if (cj->nodeID != engine_rank) {
 
-          /* If the foreign cell is active, we want its ti_end values. */
-          if (cj_active_gravity) scheduler_activate(s, cj->recv_ti);
+        /* If the foreign cell is active, we want its ti_end values. */
+        if (cj_active_gravity) scheduler_activate(s, cj->recv_ti);
 
-          /* If the local cell is active, send its ti_end values. */
-          if (ci_active_gravity)
-            scheduler_activate_send(s, ci->send_ti, cj->nodeID);
+        /* If the local cell is active, send its ti_end values. */
+        if (ci_active_gravity)
+          scheduler_activate_send(s, ci->send_ti, cj->nodeID);
       }
 #endif
     }
@@ -5336,8 +5336,10 @@ void engine_makeproxies(struct engine *e) {
 
   /* Let's be verbose about this choice */
   if (e->verbose)
-    message("Looking for proxies up to %d top-level cells away (delta_m=%d delta_m=%d)",
-	    delta, delta_m, delta_p);
+    message(
+        "Looking for proxies up to %d top-level cells away (delta_m=%d "
+        "delta_m=%d)",
+        delta, delta_m, delta_p);
 
   /* Loop over each cell in the space. */
   int ind[3];
diff --git a/src/mesh_gravity.c b/src/mesh_gravity.c
index 68c6d0727297e7513055a25d144f5d30ce8032cb..d49b850f98c3d011b4bc1f4a7462be31954e1e7f 100644
--- a/src/mesh_gravity.c
+++ b/src/mesh_gravity.c
@@ -333,7 +333,8 @@ void pm_mesh_compute_potential(struct pm_mesh* mesh, const struct space* s,
   tic = getticks();
 
   /* Merge everybody's share of the density mesh */
-  MPI_Allreduce(MPI_IN_PLACE, rho, N * N * N, MPI_DOUBLE, MPI_SUM, MPI_COMM_WORLD);
+  MPI_Allreduce(MPI_IN_PLACE, rho, N * N * N, MPI_DOUBLE, MPI_SUM,
+                MPI_COMM_WORLD);
 
   if (verbose)
     message("Mesh comunication took %.3f %s.",
diff --git a/src/scheduler.c b/src/scheduler.c
index b8a02c8c4b3a172e55fe0bfb43af736bebaadd64..3b52cb57040ac3f685a1f55237d141a05d749a8d 100644
--- a/src/scheduler.c
+++ b/src/scheduler.c
@@ -944,8 +944,8 @@ static void scheduler_splittask_gravity(struct task *t, struct scheduler *s) {
           }
         } /* Split the pair */
       }
-    }  /* pair interaction? */
-  }    /* iterate over the current task. */
+    } /* pair interaction? */
+  }   /* iterate over the current task. */
 }
 
 /**