From 58a211416fa0c310b1ea748ed1775cc8bdf110f5 Mon Sep 17 00:00:00 2001 From: claudio Date: Thu, 8 Apr 2021 17:07:55 +0000 Subject: [PATCH] Switch logic from != to ==. Makes the code easier to read. --- usr.sbin/rpki-client/main.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/usr.sbin/rpki-client/main.c b/usr.sbin/rpki-client/main.c index 89578897de9..a290203c45c 100644 --- a/usr.sbin/rpki-client/main.c +++ b/usr.sbin/rpki-client/main.c @@ -1,4 +1,4 @@ -/* $OpenBSD: main.c,v 1.133 2021/04/08 16:32:42 claudio Exp $ */ +/* $OpenBSD: main.c,v 1.134 2021/04/08 17:07:55 claudio Exp $ */ /* * Copyright (c) 2019 Kristaps Dzonsons * @@ -1044,9 +1044,9 @@ main(int argc, char *argv[]) if (pid == -1) { if (errno == EINTR) continue; - if (errno != ECHILD) - err(1, "wait"); - break; + if (errno == ECHILD) + break; + err(1, "wait"); } if (pid == procpid) -- 2.20.1