From: Amitay Isaacs Date: Thu, 21 Apr 2016 01:31:13 +0000 (+1000) Subject: ctdb-system: Fix typo in ctdb_get_peer_pid X-Git-Tag: talloc-2.1.7~210 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=bf701f06b411ca17d6f37803f71b04be391f4e96;p=thirdparty%2Fsamba.git ctdb-system: Fix typo in ctdb_get_peer_pid Signed-off-by: Amitay Isaacs Reviewed-by: Martin Schwenke --- diff --git a/ctdb/common/system_aix.c b/ctdb/common/system_aix.c index 9b22ff9edc1..de69b9ee687 100644 --- a/ctdb/common/system_aix.c +++ b/ctdb/common/system_aix.c @@ -386,7 +386,7 @@ int ctdb_get_peer_pid(const int fd, pid_t *peer_pid) struct peercred_struct cr; socklen_t crl = sizeof(struct peercred_struct); int ret; - if ((ret = getsockopt(fd, SOL_SOCKET, SO_PEERID, &cr, &crl) == 0)) { + if ((ret = getsockopt(fd, SOL_SOCKET, SO_PEERID, &cr, &crl)) == 0) { *peer_pid = cr.pid; } return ret; diff --git a/ctdb/common/system_linux.c b/ctdb/common/system_linux.c index b754e91a920..f8c793299b6 100644 --- a/ctdb/common/system_linux.c +++ b/ctdb/common/system_linux.c @@ -617,7 +617,7 @@ int ctdb_get_peer_pid(const int fd, pid_t *peer_pid) struct ucred cr; socklen_t crl = sizeof(struct ucred); int ret; - if ((ret = getsockopt(fd, SOL_SOCKET, SO_PEERCRED, &cr, &crl) == 0)) { + if ((ret = getsockopt(fd, SOL_SOCKET, SO_PEERCRED, &cr, &crl)) == 0) { *peer_pid = cr.pid; } return ret;