Fix ambigious condition
authorNikolaus Rath <Nikolaus@rath.org>
Sun, 5 Jun 2016 19:45:49 +0000 (15:45 -0400)
committerNikolaus Rath <Nikolaus@rath.org>
Sun, 5 Jun 2016 19:45:49 +0000 (15:45 -0400)
Fixes #42.

util/ulockmgr_server.c

index baef45dccc5d842c510b480d097be659051c726c..273c7d9231ae2f7822c07a40d81a4045667673f1 100644 (file)
@@ -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);