From c47dde86c0dd3dc6c5cbc7f8df5e77d534c85710 Mon Sep 17 00:00:00 2001 From: Nikolaus Rath Date: Sun, 5 Jun 2016 15:45:49 -0400 Subject: Fix ambigious condition Fixes #42. --- util/ulockmgr_server.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/util/ulockmgr_server.c b/util/ulockmgr_server.c index baef45d..273c7d9 100644 --- a/util/ulockmgr_server.c +++ b/util/ulockmgr_server.c @@ -92,7 +92,7 @@ static int receive_message(int sock, void *buf, size_t buflen, int *fdp, cmsg = CMSG_FIRSTHDR(&msg); if (cmsg) { - if (!cmsg->cmsg_type == SCM_RIGHTS) { + if (cmsg->cmsg_type != SCM_RIGHTS) { fprintf(stderr, "ulockmgr_server: unknown control message %d\n", cmsg->cmsg_type); -- cgit v1.2.1