mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-28 06:13:31 +01:00
a bit more cleanup
svn:r4417
This commit is contained in:
parent
a05387bcf4
commit
2111c0e263
@ -204,8 +204,9 @@ set_uint32(char *cp, uint32_t v)
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Rename the file 'from' to the file 'to'. On unix, this is the same as
|
* Rename the file <b>from</b> to the file <b>to</b>. On unix, this is
|
||||||
* rename(2). On windows, this removes 'to' first if it already exists.
|
* the same as rename(2). On windows, this removes <b>to</b> first if
|
||||||
|
* it already exists.
|
||||||
* Returns 0 on success. Returns -1 and sets errno on failure.
|
* Returns 0 on success. Returns -1 and sets errno on failure.
|
||||||
*/
|
*/
|
||||||
int
|
int
|
||||||
@ -607,12 +608,12 @@ tor_lookup_hostname(const char *name, uint32_t *addr)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Hold the result of our call to <b>uname</b>. */
|
/** Hold the result of our call to <b>uname</b>. */
|
||||||
static char uname_result[256];
|
static char uname_result[256];
|
||||||
/* True iff uname_result is set. */
|
/** True iff uname_result is set. */
|
||||||
static int uname_result_is_set = 0;
|
static int uname_result_is_set = 0;
|
||||||
|
|
||||||
/* Return a pointer to a description of our platform.
|
/** Return a pointer to a description of our platform.
|
||||||
*/
|
*/
|
||||||
const char *
|
const char *
|
||||||
get_uname(void)
|
get_uname(void)
|
||||||
@ -1052,8 +1053,8 @@ int
|
|||||||
network_init(void)
|
network_init(void)
|
||||||
{
|
{
|
||||||
#ifdef MS_WINDOWS
|
#ifdef MS_WINDOWS
|
||||||
/* This silly exercise is necessary before windows will allow gethostbyname to work.
|
/* This silly exercise is necessary before windows will allow
|
||||||
*/
|
* gethostbyname to work. */
|
||||||
WSADATA WSAData;
|
WSADATA WSAData;
|
||||||
int r;
|
int r;
|
||||||
r = WSAStartup(0x101,&WSAData);
|
r = WSAStartup(0x101,&WSAData);
|
||||||
|
Loading…
Reference in New Issue
Block a user