]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Fix compilation on Windows
authorNick Mathewson <nickm@torproject.org>
Wed, 31 Jul 2013 18:19:29 +0000 (14:19 -0400)
committerNick Mathewson <nickm@torproject.org>
Wed, 31 Jul 2013 18:19:29 +0000 (14:19 -0400)
(Bugfix on tests for #9288 fix; bug not in any released Tor)

src/common/util.c

index 849a7178c656c8768b86bc1037b3c0da2d2f5b54..fc247acbeb8c479c49d9b1a185a8d44352ed9a05 100644 (file)
@@ -4477,9 +4477,9 @@ stream_status_to_string(enum stream_status stream_status)
 /** Return a smartlist containing lines outputted from
  *  <b>handle</b>. Return NULL on error, and set
  *  <b>stream_status_out</b> appropriately. */
-smartlist_t *
-tor_get_lines_from_handle(HANDLE *handle,
-                          enum stream_status *stream_status_out)
+MOCK_IMPL(smartlist_t *,
+tor_get_lines_from_handle(HANDLE *handle,
+                            enum stream_status *stream_status_out))
 {
   int pos;
   char stdout_buf[600] = {0};