diff options
author | Claudio Jeker <claudio@cvs.openbsd.org> | 2021-04-08 17:07:56 +0000 |
---|---|---|
committer | Claudio Jeker <claudio@cvs.openbsd.org> | 2021-04-08 17:07:56 +0000 |
commit | d23a67f0b137b72555c22ba9ccef1e6018a32fbc (patch) | |
tree | 207bc37e87fb87de747315cdfd47d8162f0e7bf8 /usr.sbin/rpki-client | |
parent | a7581d24ade129163debc12c4322e4b3d4cdb2a0 (diff) |
Switch logic from != to ==. Makes the code easier to read.
Diffstat (limited to 'usr.sbin/rpki-client')
-rw-r--r-- | usr.sbin/rpki-client/main.c | 8 |
1 files 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 <kristaps@bsd.lv> * @@ -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) |