]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Fix: remove whitespace and update a comment in cpuworker.c
authorDavid Goulet <dgoulet@ev0ke.net>
Wed, 21 Jan 2015 19:29:03 +0000 (14:29 -0500)
committerDavid Goulet <dgoulet@ev0ke.net>
Wed, 21 Jan 2015 19:31:02 +0000 (14:31 -0500)
Signed-off-by: David Goulet <dgoulet@ev0ke.net>
src/or/cpuworker.c

index 3f129ded99639d81a40699df501a496c8f2449ff..39d2079994953ee17058892c58b296bdbee50be8 100644 (file)
@@ -171,9 +171,8 @@ update_state_threadfn(void *state_, void *work_)
   return WQ_RPL_REPLY;
 }
 
-/** Called when the onion key has changed and we need to spawn new
- * cpuworkers.  Close all currently idle cpuworkers, and mark the last
- * rotation time as now.
+/** Called when the onion key has changed so update all CPU worker(s) with
+ * new function pointers with which a new state will be generated.
  */
 void
 cpuworkers_rotate_keyinfo(void)
@@ -336,7 +335,7 @@ cpuworker_onion_handshake_replyfn(void *work_)
             "Unpacking cpuworker reply %p, circ=%p, success=%d",
             job, circ, rpl.success);
 
-  if (circ->base_.magic == DEAD_CIRCUIT_MAGIC) { 
+  if (circ->base_.magic == DEAD_CIRCUIT_MAGIC) {
     /* The circuit was supposed to get freed while the reply was
      * pending. Instead, it got left for us to free so that we wouldn't freak
      * out when the job->circ field wound up pointing to nothing. */