mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2025-02-23 22:47:12 +01:00
whitespace fixes
svn:r4544
This commit is contained in:
parent
278bac421f
commit
97c58f066a
2 changed files with 4 additions and 4 deletions
|
@ -923,12 +923,12 @@ tor_mutex_acquire(tor_mutex_t *m)
|
|||
r = WaitForSingleObject(m->handle, INFINITE);
|
||||
switch (r) {
|
||||
case WAIT_ABANDONED: /* holding thread exited. */
|
||||
case WAIT_OBJECT_0: /* we got the mutex normally. */
|
||||
case WAIT_OBJECT_0: /* we got the mutex normally. */
|
||||
break;
|
||||
case WAIT_TIMEOUT: /* Should never happen. */
|
||||
tor_assert(0);
|
||||
tor_assert(0);
|
||||
break;
|
||||
case WAIT_FAILED:
|
||||
case WAIT_FAILED:
|
||||
log_fn(LOG_WARN, "Failed to acquire mutex: %d", GetLastError());
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1513,7 +1513,7 @@ void enable_control_logging(void);
|
|||
int _log_conn_is_control = (conn && conn->type == CONN_TYPE_CONTROL); \
|
||||
if (_log_conn_is_control) \
|
||||
disable_control_logging(); \
|
||||
do {stmt;} while(0); \
|
||||
do {stmt;} while (0); \
|
||||
if (_log_conn_is_control) \
|
||||
enable_control_logging(); \
|
||||
} while (0)
|
||||
|
|
Loading…
Add table
Reference in a new issue