diff options
author | Nick Mathewson <nickm@torproject.org> | 2012-01-17 16:35:07 -0500 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2012-01-17 16:35:07 -0500 |
commit | 6e8c2a3e46e3578b0268d422b1753995d18fb734 (patch) | |
tree | 0f2952090d871b437021d2f6c6059e78234fa0f5 /src/or/cpuworker.c | |
parent | 1e923dd2fbdc0834b8fb3ba97b658f15a6d5f6b4 (diff) | |
download | tor-6e8c2a3e46e3578b0268d422b1753995d18fb734.tar.gz tor-6e8c2a3e46e3578b0268d422b1753995d18fb734.zip |
Use SOCKET_OK macros in even more places
Add a TOR_INVALID_SOCKET macro to wrap -1/INVALID_SOCKET.
Partial work for bug4533.
Diffstat (limited to 'src/or/cpuworker.c')
-rw-r--r-- | src/or/cpuworker.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/or/cpuworker.c b/src/or/cpuworker.c index e4460c5981..ed31d358ae 100644 --- a/src/or/cpuworker.c +++ b/src/or/cpuworker.c @@ -329,8 +329,8 @@ spawn_cpuworker(void) return -1; } - tor_assert(fdarray[0] >= 0); - tor_assert(fdarray[1] >= 0); + tor_assert(SOCKET_OK(fdarray[0])); + tor_assert(SOCKET_OK(fdarray[1])); fd = fdarray[0]; spawn_func(cpuworker_main, (void*)fdarray); |