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

[or-cvs] r10743: try to fix mingw compile (in tor/trunk: . src/common)



Author: nickm
Date: 2007-07-05 23:49:57 -0400 (Thu, 05 Jul 2007)
New Revision: 10743

Modified:
   tor/trunk/
   tor/trunk/src/common/compat.c
Log:
 r13600@Kushana:  nickm | 2007-07-05 23:49:47 -0400
 try to fix mingw compile



Property changes on: tor/trunk
___________________________________________________________________
 svk:merge ticket from /tor/trunk [r13600] on c95137ef-5f19-0410-b913-86e773d04f59

Modified: tor/trunk/src/common/compat.c
===================================================================
--- tor/trunk/src/common/compat.c	2007-07-05 21:52:11 UTC (rev 10742)
+++ tor/trunk/src/common/compat.c	2007-07-06 03:49:57 UTC (rev 10743)
@@ -101,6 +101,7 @@
 
 #include "log.h"
 #include "util.h"
+#include "container.h"
 
 /* Inline the strl functions if the platform doesn't have them. */
 #ifndef HAVE_STRLCPY
@@ -1497,8 +1498,8 @@
 tor_mutex_t *
 tor_mutex_new(void)
 {
-  void *r
-  m = tor_malloc_zero(sizeof(tor_mutex_t));
+  void *r;
+  tor_mutex_t *m = tor_malloc_zero(sizeof(tor_mutex_t));
   r = InitializeCriticalSection(&m->mutex);
   tor_assert(r != NULL);
   return m;