From: tb Date: Thu, 17 Aug 2023 09:22:56 +0000 (+0000) Subject: Use cmp instead of i for the result of a comparison X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=acdf279edef6d2c3c56d73ccc0578b1921f71579;p=openbsd Use cmp instead of i for the result of a comparison ok jsing --- diff --git a/lib/libcrypto/objects/obj_dat.c b/lib/libcrypto/objects/obj_dat.c index 481d86b6bfa..1e7258f7483 100644 --- a/lib/libcrypto/objects/obj_dat.c +++ b/lib/libcrypto/objects/obj_dat.c @@ -1,4 +1,4 @@ -/* $OpenBSD: obj_dat.c,v 1.55 2023/08/17 09:18:21 tb Exp $ */ +/* $OpenBSD: obj_dat.c,v 1.56 2023/08/17 09:22:56 tb Exp $ */ /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) * All rights reserved. * @@ -179,11 +179,11 @@ static int added_obj_cmp(const ADDED_OBJ *ca, const ADDED_OBJ *cb) { ASN1_OBJECT *a, *b; - int i; + int cmp; + + if ((cmp = ca->type - cb->type) != 0) + return cmp; - i = ca->type - cb->type; - if (i) - return (i); a = ca->obj; b = cb->obj; switch (ca->type) {