]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Move a comment to the right place in tor_zstd_compress_process
authorteor <teor2345@gmail.com>
Thu, 15 Jun 2017 23:45:58 +0000 (09:45 +1000)
committerteor <teor2345@gmail.com>
Thu, 15 Jun 2017 23:45:58 +0000 (09:45 +1000)
Part of #22502

src/common/compress_zstd.c

index 99d05c37bd874d28d33b71f446d89e00b5e74e3a..9143615d4da12580e329d24c51417febfa8c8866 100644 (file)
@@ -312,6 +312,8 @@ tor_zstd_compress_process(tor_zstd_compress_state_t *state,
       return TOR_COMPRESS_ERROR;
     }
 
+    // ZSTD_flushStream returns 0 if the frame is done, or >0 if it
+    // is incomplete.
     if (retval > 0)
       return TOR_COMPRESS_BUFFER_FULL;
   }
@@ -339,8 +341,6 @@ tor_zstd_compress_process(tor_zstd_compress_state_t *state,
 
     return TOR_COMPRESS_DONE;
   } else {
-    // ZSTD_flushStream returns 0 if the frame is done, or >0 if it
-    // is incomplete.
     return (retval == 0) ? TOR_COMPRESS_DONE : TOR_COMPRESS_OK;
   }