[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [tor/master] Fix compilation on Windows



commit 54056882235fbfea84f1e5860a71e54440a1e0b5
Author: Nick Mathewson <nickm@xxxxxxxxxxxxxx>
Date:   Wed Jul 31 14:19:29 2013 -0400

    Fix compilation on Windows
    
    (Bugfix on tests for #9288 fix; bug not in any released Tor)
---
 src/common/util.c |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/common/util.c b/src/common/util.c
index 849a717..fc247ac 100644
--- a/src/common/util.c
+++ b/src/common/util.c
@@ -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};

_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits