X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=net.h;h=d42031e84b4f68c3ef79905f5c99c76b3d5ea3dc;hp=8fdaa3eebf0285dc490470186093fbe8f4529ebe;hb=045273c289eb3d972eea99df99967f680b06940f;hpb=74d8b443aba528dc65af874a81c53be26aaace9e diff --git a/net.h b/net.h index 8fdaa3ee..d42031e8 100644 --- 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. - * \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. * @@ -53,7 +54,7 @@ void disable_crypt(int fd); * * \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;