diff options
author | tb <> | 2023-08-17 09:22:56 +0000 |
---|---|---|
committer | tb <> | 2023-08-17 09:22:56 +0000 |
commit | 1918a1c68aa6c643887039ba6d89e85fd74720c7 (patch) | |
tree | 902e7eead5167e66574f0d28eae1442725611676 | |
parent | 129c2cdcfb40e6b942b798ab40091669eac48a9f (diff) | |
download | openbsd-1918a1c68aa6c643887039ba6d89e85fd74720c7.tar.gz openbsd-1918a1c68aa6c643887039ba6d89e85fd74720c7.tar.bz2 openbsd-1918a1c68aa6c643887039ba6d89e85fd74720c7.zip |
Use cmp instead of i for the result of a comparison
ok jsing
-rw-r--r-- | src/lib/libcrypto/objects/obj_dat.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/lib/libcrypto/objects/obj_dat.c b/src/lib/libcrypto/objects/obj_dat.c index 481d86b6bf..1e7258f748 100644 --- a/src/lib/libcrypto/objects/obj_dat.c +++ b/src/lib/libcrypto/objects/obj_dat.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: obj_dat.c,v 1.55 2023/08/17 09:18:21 tb Exp $ */ | 1 | /* $OpenBSD: obj_dat.c,v 1.56 2023/08/17 09:22:56 tb Exp $ */ |
2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) | 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) |
3 | * All rights reserved. | 3 | * All rights reserved. |
4 | * | 4 | * |
@@ -179,11 +179,11 @@ static int | |||
179 | added_obj_cmp(const ADDED_OBJ *ca, const ADDED_OBJ *cb) | 179 | added_obj_cmp(const ADDED_OBJ *ca, const ADDED_OBJ *cb) |
180 | { | 180 | { |
181 | ASN1_OBJECT *a, *b; | 181 | ASN1_OBJECT *a, *b; |
182 | int i; | 182 | int cmp; |
183 | |||
184 | if ((cmp = ca->type - cb->type) != 0) | ||
185 | return cmp; | ||
183 | 186 | ||
184 | i = ca->type - cb->type; | ||
185 | if (i) | ||
186 | return (i); | ||
187 | a = ca->obj; | 187 | a = ca->obj; |
188 | b = cb->obj; | 188 | b = cb->obj; |
189 | switch (ca->type) { | 189 | switch (ca->type) { |