[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-bugs] #6302 [Tor Client]: Use SOCK_ERRNO consistently
#6302: Use SOCK_ERRNO consistently
-------------------------+--------------------------------------------------
Reporter: nickm | Owner:
Type: enhancement | Status: new
Priority: minor | Milestone: Tor: 0.2.4.x-final
Component: Tor Client | Version:
Keywords: | Parent:
Points: | Actualpoints:
-------------------------+--------------------------------------------------
Everywhere that we currently say
{{{
#ifdef _WIN32
frobnicate(WSAENOWOMBATS);
#else
frobnicate(ENOWOMBATS);
#endif
}}}
we ought instead to just say:
{{{
frobincate(SOCK_ERRNO(ENOWOMBATS));
}}}
in order to help get internal #ifdefs out of our functions.
--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/6302>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online
_______________________________________________
tor-bugs mailing list
tor-bugs@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-bugs