diff options
author | pjd <pjd@FreeBSD.org> | 2011-09-27 07:52:39 +0000 |
---|---|---|
committer | pjd <pjd@FreeBSD.org> | 2011-09-27 07:52:39 +0000 |
commit | ff11c3069e6db5789566bf2006ba6c8976c45e7c (patch) | |
tree | e603698b4c4242482aee27f1fd516b6d8e963bc3 /sbin/hastd/proto_tcp.c | |
parent | d35869ca7e2985d087d51a291649c60594a7436e (diff) | |
download | FreeBSD-src-ff11c3069e6db5789566bf2006ba6c8976c45e7c.zip FreeBSD-src-ff11c3069e6db5789566bf2006ba6c8976c45e7c.tar.gz |
No need to use KEEP_ERRNO() macro around pjdlog functions, as they don't
modify errno.
MFC after: 3 days
Diffstat (limited to 'sbin/hastd/proto_tcp.c')
-rw-r--r-- | sbin/hastd/proto_tcp.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/sbin/hastd/proto_tcp.c b/sbin/hastd/proto_tcp.c index 8f0f157..44eb13b 100644 --- a/sbin/hastd/proto_tcp.c +++ b/sbin/hastd/proto_tcp.c @@ -298,8 +298,7 @@ tcp_connect(void *ctx, int timeout) flags = fcntl(tctx->tc_fd, F_GETFL); if (flags == -1) { - KEEP_ERRNO(pjdlog_common(LOG_DEBUG, 1, errno, - "fcntl(F_GETFL) failed")); + pjdlog_common(LOG_DEBUG, 1, errno, "fcntl(F_GETFL) failed"); return (errno); } /* @@ -308,8 +307,8 @@ tcp_connect(void *ctx, int timeout) */ flags |= O_NONBLOCK; if (fcntl(tctx->tc_fd, F_SETFL, flags) == -1) { - KEEP_ERRNO(pjdlog_common(LOG_DEBUG, 1, errno, - "fcntl(F_SETFL, O_NONBLOCK) failed")); + pjdlog_common(LOG_DEBUG, 1, errno, + "fcntl(F_SETFL, O_NONBLOCK) failed"); return (errno); } |