mirror of
https://github.com/cuberite/libevent.git
synced 2025-09-19 09:15:34 -04:00
r16509@catbus: nickm | 2007-11-07 02:08:32 -0500
Stop using C++ style comments. svn:r497
This commit is contained in:
parent
1f50f41283
commit
e72661d2ff
1
buffer.c
1
buffer.c
@ -392,7 +392,6 @@ evbuffer_read(struct evbuffer *buf, int fd, int howmuch)
|
|||||||
#ifndef WIN32
|
#ifndef WIN32
|
||||||
n = read(fd, p, howmuch);
|
n = read(fd, p, howmuch);
|
||||||
#else
|
#else
|
||||||
//n = ReadFile((HANDLE)fd, p, howmuch, &dwBytesRead, NULL);
|
|
||||||
n = recv(fd, p, howmuch, 0);
|
n = recv(fd, p, howmuch, 0);
|
||||||
#endif
|
#endif
|
||||||
if (n == -1)
|
if (n == -1)
|
||||||
|
4
http.c
4
http.c
@ -2304,7 +2304,7 @@ addr_from_name(char *address)
|
|||||||
return (aitop);
|
return (aitop);
|
||||||
#else
|
#else
|
||||||
assert(0);
|
assert(0);
|
||||||
return NULL; // XXXXX Use gethostbyname, if this function is ever used.
|
return NULL; /* XXXXX Use gethostbyname, if this function is ever used. */
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
@ -2330,7 +2330,7 @@ name_from_addr(struct sockaddr *sa, socklen_t salen,
|
|||||||
*phost = ntop;
|
*phost = ntop;
|
||||||
*pport = strport;
|
*pport = strport;
|
||||||
#else
|
#else
|
||||||
// XXXX
|
/* XXXX */
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user