diff --git a/src/engine.c b/src/engine.c
index d15a8952573e4f627e4040b086d9535babb54d86..da200d41180dfdf65d4a716cca7d100d578b6b48 100644
--- a/src/engine.c
+++ b/src/engine.c
@@ -2203,10 +2203,10 @@ void engine_rebuild(struct engine *e) {
 
   /* Re-build the tasks. */
   engine_maketasks(e);
-  
+
   /* Run through the tasks and mark as skip or not. */
   if (engine_marktasks(e))
-     error("engine_marktasks failed after space_rebuild.");
+    error("engine_marktasks failed after space_rebuild.");
 
   /* Print the status of the system */
   if (e->verbose) engine_print_task_counts(e);
@@ -2552,7 +2552,7 @@ void engine_init_particles(struct engine *e, int flag_entropy_ICs) {
   engine_prepare(e, 1);
 
   engine_marktasks(e);
-  
+
   /* Build the masks corresponding to the policy */
   unsigned int mask = 0;
   unsigned int submask = 0;
diff --git a/src/scheduler.c b/src/scheduler.c
index 3606e60e4bb85f1ec83896553d82b4c5881637d1..a45aa6570d647d0aa0ad95e102d717b9895d5340 100644
--- a/src/scheduler.c
+++ b/src/scheduler.c
@@ -1220,7 +1220,7 @@ struct task *scheduler_done(struct scheduler *s, struct task *t) {
     pthread_cond_broadcast(&s->sleep_cond);
     pthread_mutex_unlock(&s->sleep_mutex);
   }
-  
+
   /* Mark the task as skip. */
   t->skip = 1;