diff options
| author | tb <> | 2023-08-17 09:22:56 +0000 |
|---|---|---|
| committer | tb <> | 2023-08-17 09:22:56 +0000 |
| commit | 9d92214a88ee23021bfb3209d3bfd587966de9c6 (patch) | |
| tree | 902e7eead5167e66574f0d28eae1442725611676 /src/lib/libc | |
| parent | 4aaa10717b193a2505cd911abb5eaaf194e54e4c (diff) | |
| download | openbsd-9d92214a88ee23021bfb3209d3bfd587966de9c6.tar.gz openbsd-9d92214a88ee23021bfb3209d3bfd587966de9c6.tar.bz2 openbsd-9d92214a88ee23021bfb3209d3bfd587966de9c6.zip | |
Use cmp instead of i for the result of a comparison
ok jsing
Diffstat (limited to '')
| -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) { |
