diff --git a/src/space.c b/src/space.c
index 6e6a0768ff6a3a2982fd23edd84d61ac9afd5515..a45cb68d38b1b5eee19cdb9fe80c380c5cc67868 100644
--- a/src/space.c
+++ b/src/space.c
@@ -173,6 +173,8 @@ int space_getsid(struct space *s, struct cell **ci, struct cell **cj,
  *
  * @param s The #space.
  * @param c The #cell to recycle.
+ * @param rec_begin Pointer to the start of the list of cells to recycle.
+ * @param rec_end Pointer to the end of the list of cells to recycle.
  */
 void space_rebuild_recycle_rec(struct space *s, struct cell *c,
                                struct cell **rec_begin, struct cell **rec_end) {
@@ -1654,7 +1656,7 @@ void space_recycle(struct space *s, struct cell *c) {
  * @param s The #space.
  * @param list_begin Pointer to the first #cell in the linked list of
  *        cells joined by their @c next pointers.
- * @param list_begin Pointer to the last #cell in the linked list of
+ * @param list_end Pointer to the last #cell in the linked list of
  *        cells joined by their @c next pointers. It is assumed that this
  *        cell's @c next pointer is @c NULL.
  */
diff --git a/src/threadpool.c b/src/threadpool.c
index 35e5f2139de0689d9761d0d8f19030a076329cba..c11fd8121bb02f36fce1796d79a7eb55a38102c4 100644
--- a/src/threadpool.c
+++ b/src/threadpool.c
@@ -90,7 +90,7 @@ void threadpool_init(struct threadpool *tp, int num_threads) {
   /* Initialize the thread counters. */
   tp->num_threads = num_threads;
   tp->num_threads_waiting = 0;
-  
+
   /* If there is only a single thread, do nothing more as of here as
      we will just do work in the (blocked) calling thread. */
   if (num_threads == 1) return;
@@ -147,7 +147,7 @@ void threadpool_init(struct threadpool *tp, int num_threads) {
 void threadpool_map(struct threadpool *tp, threadpool_map_function map_function,
                     void *map_data, size_t N, int stride, int chunk,
                     void *extra_data) {
-                    
+
   /* If we just have a single thread, call the map function directly. */
   if (tp->num_threads == 1) {
     map_function(map_data, N, extra_data);