From: tb Date: Thu, 14 Dec 2023 18:06:44 +0000 (+0000) Subject: OBJ_create(): remove useless cast X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=3db1954f1b441a0e2cb233cbba0007e724747fa8;p=openbsd OBJ_create(): remove useless cast --- diff --git a/lib/libcrypto/objects/obj_dat.c b/lib/libcrypto/objects/obj_dat.c index bd8601c316e..77775062f2b 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.71 2023/12/14 15:33:09 tb Exp $ */ +/* $OpenBSD: obj_dat.c,v 1.72 2023/12/14 18:06:44 tb Exp $ */ /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) * All rights reserved. * @@ -605,7 +605,7 @@ OBJ_create(const char *oid, const char *sn, const char *ln) i = a2d_ASN1_OBJECT(buf, i, oid, -1); if (i == 0) goto err; - op = (ASN1_OBJECT *)ASN1_OBJECT_create(OBJ_new_nid(1), buf, i, sn, ln); + op = ASN1_OBJECT_create(OBJ_new_nid(1), buf, i, sn, ln); if (op == NULL) goto err; ok = OBJ_add_object(op);