projects
/
paraslash.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Don't compute attributes string twice.
[paraslash.git]
/
net.h
diff --git
a/net.h
b/net.h
index 8fdaa3eebf0285dc490470186093fbe8f4529ebe..d42031e84b4f68c3ef79905f5c99c76b3d5ea3dc 100644
(file)
--- a/
net.h
+++ b/
net.h
@@
-45,7
+45,8
@@
void disable_crypt(int fd);
* A wrapper around connect(2).
*
* \param fd The file descriptor.
* A wrapper around connect(2).
*
* \param fd The file descriptor.
- * \param their_addr The address to connect.
+ * \param addr The address to connect.
+ * \param len The size of \a addr.
*
* This should not be called directly. Always use the PARA_CONNECT macro.
*
*
* This should not be called directly. Always use the PARA_CONNECT macro.
*
@@
-53,7
+54,7
@@
void disable_crypt(int fd);
*
* \sa connect(2), PARA_CONNECT.
*/
*
* \sa connect(2), PARA_CONNECT.
*/
-
_static_inline_
int _para_connect(int fd, void *addr, socklen_t len)
+
static inline
int _para_connect(int fd, void *addr, socklen_t len)
{
if (connect(fd, (struct sockaddr *)addr, len) == -1)
return -E_CONNECT;
{
if (connect(fd, (struct sockaddr *)addr, len) == -1)
return -E_CONNECT;